MCPcopy
hub / github.com/pytest-dev/pytest / get_dir_from_path

Function get_dir_from_path

src/_pytest/config/findpaths.py:238–241  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

236 return x.split("::", maxsplit=1)[0]
237
238 def get_dir_from_path(path: Path) -> Path:
239 if path.is_dir():
240 return path
241 return path.parent
242
243 # These look like paths but may not exist
244 possible_paths = (

Callers 1

get_dirs_from_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected