Lines Matching refs:tests
18 # we would need to avoid loading the same tests multiple times
68 This class is responsible for loading tests according to various criteria
120 tests = []
124 tests.append(self.loadTestsFromTestCase(obj))
127 tests = self.suiteClass(tests)
130 return load_tests(self, tests, pattern)
136 return tests
245 tests found within them. Only test files that match the pattern will
254 this exists then it will be called with (loader, tests, pattern) unless
257 tests - this ensures that when a package uses discover to further
258 discover child tests that infinite recursion does not happen.
261 load_tests is responsible for loading all tests in the package.
322 tests = list(self._find_tests(start_dir, pattern))
323 return self.suiteClass(tests)
366 tests, should_recurse = self._find_test_path(start_dir, pattern)
367 if tests is not None:
368 yield tests
377 tests, should_recurse = self._find_test_path(full_path, pattern)
378 if tests is not None:
379 yield tests
392 Loads tests from a single file, or a directories' __init__.py when
437 tests = None
453 tests = self.loadTestsFromModule(package, pattern=pattern)
455 # loadTestsFromModule(package) has loaded tests for us.
456 return tests, False
457 return tests, True