Lines Matching refs:load_tests
67 load_tests = getattr(module, 'load_tests', None)
69 if use_load_tests and load_tests is not None:
71 return load_tests(self, tests, None)
154 pattern then the package will be checked for a 'load_tests' function. If
157 If load_tests exists then discovery does *not* recurse into the package,
158 load_tests is responsible for loading all tests in the package.
162 load_tests does not need to pass this argument in to loader.discover().
166 # make top_level_dir optional if called from load_tests in a package
271 load_tests = None
274 # only check load_tests if the package directory itself matches the filter
277 load_tests = getattr(package, 'load_tests', None)
280 if load_tests is None:
289 yield load_tests(self, tests, pattern)