Home
last modified time | relevance | path

Searched refs:top_level_dir (Results 1 – 8 of 8) sorted by relevance

/third_party/python/Lib/unittest/
Dloader.py242 def discover(self, start_dir, pattern='test*.py', top_level_dir=None): argument
271 if top_level_dir is None and self._top_level_dir is not None:
273 top_level_dir = self._top_level_dir
274 elif top_level_dir is None:
276 top_level_dir = start_dir
278 top_level_dir = os.path.abspath(top_level_dir)
280 if not top_level_dir in sys.path:
285 sys.path.insert(0, top_level_dir)
286 self._top_level_dir = top_level_dir
293 if start_dir != top_level_dir:
[all …]
/third_party/python/Lib/unittest/test/
D__main__.py10 top_level_dir = os.path.dirname(os.path.dirname(this_dir))
12 top_level_dir=top_level_dir)
Dtest_discovery.py386 loader.discover('/foo/bar', top_level_dir='/foo')
407 top_level_dir = os.path.abspath('/foo/bar')
410 self.assertEqual(loader._top_level_dir, top_level_dir)
412 self.assertIn(top_level_dir, sys.path)
452 suite = loader.discover('/toplevel/startdir', top_level_dir='/toplevel')
637 def discover(self, start_dir, pattern, top_level_dir): argument
638 self.args.append((start_dir, pattern, top_level_dir))
650 def discover(self, start_dir, pattern, top_level_dir): argument
651 self.args.append((start_dir, pattern, top_level_dir))
/third_party/python/Lib/unittest/test/testmock/
D__main__.py10 top_level_dir = os.path.dirname(os.path.dirname(os.path.dirname(this_dir)))
12 top_level_dir=top_level_dir)
/third_party/python/Tools/unittestgui/
Dunittestgui.py62 self.top_level_dir = ''
104 top_level_dir = self.top_level_dir or None
105 … tests = unittest.defaultTestLoader.discover(directory, self.test_file_glob_pattern, top_level_dir)
211 def __init__(self, master, top_level_dir, test_file_glob_pattern, *args, **kwargs): argument
212 self.top_level_dir = top_level_dir
214 self.dirVar.set(top_level_dir)
241 self.top_level_dir = self.dirVar.get()
272 d = DiscoverSettingsDialog(self.top, self.top_level_dir, self.test_file_glob_pattern)
273 self.top_level_dir = d.top_level_dir
/third_party/python/Lib/idlelib/idle_test/
D__init__.py15 top_level_dir=top_dir)
/third_party/python/Lib/test/support/
D__init__.py155 top_level_dir=top_dir,
/third_party/python/Doc/library/
Dunittest.rst1837 .. method:: discover(start_dir, pattern='test*.py', top_level_dir=None)
1867 packages can continue discovery themselves. *top_level_dir* is stored so