MCPcopy Create free account
hub / github.com/pytest-dev/pytest / get_best_relpath

Function get_best_relpath

src/_pytest/python.py:1486–1488  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

1484 verbose = config.getvalue("verbose")
1485
1486 def get_best_relpath(func) -> str:
1487 loc = getlocation(func, str(curdir))
1488 return bestrelpath(curdir, Path(loc))
1489
1490 def write_fixture(fixture_def: fixtures.FixtureDef[object]) -> None:
1491 argname = fixture_def.argname

Callers 1

write_itemFunction · 0.85

Calls 2

getlocationFunction · 0.90
bestrelpathFunction · 0.90

Tested by

no test coverage detected