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

Function get_best_relpath

src/_pytest/fixtures.py:2228–2230  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

2226 verbose = config.get_verbosity()
2227
2228 def get_best_relpath(func) -> str:
2229 loc = getlocation(func, invocation_dir)
2230 return bestrelpath(invocation_dir, Path(loc))
2231
2232 def write_fixture(fixture_def: FixtureDef[object]) -> None:
2233 argname = fixture_def.argname

Callers 1

write_itemFunction · 0.85

Calls 2

getlocationFunction · 0.90
bestrelpathFunction · 0.90

Tested by

no test coverage detected