def load_tests(loader, tests, pattern):
"""
Add tests within doctests so that the unittest runner picks them up.
See https://docs.python.org/3.5/library/unittest.html#load-tests-protocol
"""
etl_modules = sorted(mod for mod in sys.modules if mod.startswith("etl"))
logger.info("Adding tests from %s", etl.names.join_with_quotes(etl_modules))
for mod in etl_modules:
tests.addTests(doctest.DocTestSuite(mod))
return tests
评论列表
文章目录