Lines Matching refs:full_path
316 full_path = os.path.abspath(module.__file__)
318 if os.path.basename(full_path).lower().startswith('__init__.py'):
319 return os.path.dirname(os.path.dirname(full_path))
324 return os.path.dirname(full_path)
342 def _match_path(self, path, full_path, pattern): argument
365 full_path = os.path.join(start_dir, path)
366 tests, should_recurse = self._find_test_path(full_path, pattern)
371 name = self._get_name_from_path(full_path)
374 yield from self._find_tests(full_path, pattern)
378 def _find_test_path(self, full_path, pattern): argument
386 basename = os.path.basename(full_path)
387 if os.path.isfile(full_path):
391 if not self._match_path(basename, full_path, pattern):
394 name = self._get_name_from_path(full_path)
406 getattr(module, '__file__', full_path))
410 os.path.realpath(full_path))
414 os.path.basename(full_path))
415 expected_dir = os.path.dirname(full_path)
421 elif os.path.isdir(full_path):
422 if not os.path.isfile(os.path.join(full_path, '__init__.py')):
427 name = self._get_name_from_path(full_path)