Skip to content

Instantly share code, notes, and snippets.

@drvinceknight
Created September 16, 2016 10:48
Show Gist options
  • Save drvinceknight/d0c693b2b398d599455df8fbdb0a08a9 to your computer and use it in GitHub Desktop.
Save drvinceknight/d0c693b2b398d599455df8fbdb0a08a9 to your computer and use it in GitHub Desktop.
import doctest
import os
import unittest
def load_tests(loader, tests, ignore):
for root, dirs, files in os.walk("./docs"):
for f in files:
if f.endswith(".rst"):
tests.addTests(
doctest.DocFileSuite(os.path.join(root, f),
optionflags=doctest.ELLIPSIS))
return tests
if __name__ == '__main__':
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment