1 2 3 4 5 6 7
import unittest def all_tests(): test_loader = unittest.TestLoader() test_suite = test_loader.discover('tests', pattern='test_*.py') return test_suite