Home
last modified time | relevance | path

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

/external/chromium-trace/catapult/common/py_utils/py_utils/
Ddiscover.py15 def DiscoverModules(start_dir, top_level_dir, pattern='*'): argument
28 top_level_dir = os.path.realpath(top_level_dir)
49 os.path.join(dir_path, filename), top_level_dir)
57 sys.path.insert(0, top_level_dir)
77 top_level_dir, argument
99 modules = DiscoverModules(start_dir, top_level_dir, pattern)
/external/python/cpython2/Lib/unittest/
Dloader.py145 def discover(self, start_dir, pattern='test*.py', top_level_dir=None): argument
167 if top_level_dir is None and self._top_level_dir is not None:
169 top_level_dir = self._top_level_dir
170 elif top_level_dir is None:
172 top_level_dir = start_dir
174 top_level_dir = os.path.abspath(top_level_dir)
176 if not top_level_dir in sys.path:
181 sys.path.insert(0, top_level_dir)
182 self._top_level_dir = top_level_dir
187 if start_dir != top_level_dir:
[all …]
Dmain.py211 top_level_dir = options.top
214 self.test = loader.discover(start_dir, pattern, top_level_dir)
/external/python/cpython3/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 …]
/external/python/cpython3/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.py385 loader.discover('/foo/bar', top_level_dir='/foo')
406 top_level_dir = os.path.abspath('/foo/bar')
409 self.assertEqual(loader._top_level_dir, top_level_dir)
411 self.assertIn(top_level_dir, sys.path)
451 suite = loader.discover('/toplevel/startdir', top_level_dir='/toplevel')
636 def discover(self, start_dir, pattern, top_level_dir): argument
637 self.args.append((start_dir, pattern, top_level_dir))
649 def discover(self, start_dir, pattern, top_level_dir): argument
650 self.args.append((start_dir, pattern, top_level_dir))
/external/python/cpython3/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)
/external/python/mock/mock/tests/
D__main__.py10 top_level_dir = os.path.dirname(os.path.dirname(os.path.dirname(this_dir)))
12 top_level_dir=top_level_dir)
/external/python/cpython3/Tools/unittestgui/
Dunittestgui.py63 self.top_level_dir = ''
105 top_level_dir = self.top_level_dir or None
106 … tests = unittest.defaultTestLoader.discover(directory, self.test_file_glob_pattern, top_level_dir)
212 def __init__(self, master, top_level_dir, test_file_glob_pattern, *args, **kwargs): argument
213 self.top_level_dir = top_level_dir
215 self.dirVar.set(top_level_dir)
242 self.top_level_dir = self.dirVar.get()
273 d = DiscoverSettingsDialog(self.top, self.top_level_dir, self.test_file_glob_pattern)
274 self.top_level_dir = d.top_level_dir
/external/python/cpython2/Lib/unittest/test/
Dtest_discovery.py152 loader.discover('/foo/bar', top_level_dir='/foo')
173 top_level_dir = os.path.abspath('/foo/bar')
176 self.assertEqual(loader._top_level_dir, top_level_dir)
178 self.assertIn(top_level_dir, sys.path)
236 def discover(self, start_dir, pattern, top_level_dir): argument
237 self.args.append((start_dir, pattern, top_level_dir))
249 def discover(self, start_dir, pattern, top_level_dir): argument
250 self.args.append((start_dir, pattern, top_level_dir))
/external/chromium-trace/catapult/common/bin/
Drun_tests16 def _RunTestsOrDie(top_level_dir): argument
17 exit_code = run_with_typ.Run(top_level_dir, path=[_PY_UTILS_PATH])
/external/chromium-trace/catapult/common/eslint/bin/
Drun_tests19 def _RunTestsOrDie(top_level_dir): argument
20 exit_code = run_with_typ.Run(top_level_dir, path=[_ESLINT_PATH])
/external/python/cpython2/Lib/idlelib/idle_test/
D__init__.py13 top_level_dir=top_dir)
/external/python/cpython3/Lib/idlelib/idle_test/
D__init__.py15 top_level_dir=top_dir)
/external/chromium-trace/catapult/devil/bin/
Drun_py_tests19 return run_with_typ.Run(top_level_dir=_DEVIL_PATH)
Drun_py_devicetests29 top_level_dir=_DEVIL_PATH)
/external/yapf/
Dsetup.py36 tests = loader.discover('yapftests', pattern='*_test.py', top_level_dir='.')
/external/chromium-trace/catapult/systrace/bin/
Drun_tests28 top_level_dir=_SYSTRACE_DIR)
/external/python/cpython3/Lib/test/support/
D__init__.py217 top_level_dir=top_dir,
/external/python/cpython2/Doc/library/
Dunittest.rst1505 .. method:: discover(start_dir, pattern='test*.py', top_level_dir=None)
1529 packages can continue discovery themselves. *top_level_dir* is stored so
/external/python/cpython3/Doc/library/
Dunittest.rst1694 .. method:: discover(start_dir, pattern='test*.py', top_level_dir=None)
1724 packages can continue discovery themselves. *top_level_dir* is stored so