Lines Matching refs:package
173 If a test package name (directory with '__init__.py') matches the
174 pattern then the package will be checked for a 'load_tests' function. If
177 If load_tests exists then discovery does *not* recurse into the package,
178 load_tests is responsible for loading all tests in the package.
186 # make top_level_dir optional if called from load_tests in a package
282 # only check load_tests if the package directory itself matches the filter
284 package = self._get_module_from_name(name)
285 load_tests = getattr(package, 'load_tests', None)
286 tests = self.loadTestsFromModule(package, use_load_tests=False)
290 # tests loaded from package file
292 # recurse into the package
299 yield _make_failed_load_tests(package.__name__, e,