|
|
- import os
- import pkgutil
-
- def load_tests(loader, suite, pattern):
- for imp, modname, _ in pkgutil.walk_packages(__path__):
- mod = imp.find_module(modname).load_module(modname)
- for test in loader.loadTestsFromModule(mod):
- print("Running TestCase: {}".format(modname))
- suite.addTests(test)
-
- print("=" * 70)
- return suite
|