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

Method startpath

src/_pytest/main.py:498–503  ·  view source on GitHub ↗

The path from which pytest was invoked. .. versionadded:: 7.0.0

(self)

Source from the content-addressed store, hash-verified

496
497 @property
498 def startpath(self) -> Path:
499 """The path from which pytest was invoked.
500
501 .. versionadded:: 7.0.0
502 """
503 return self.config.invocation_params.dir
504
505 def _node_location_to_relpath(self, node_path: Path) -> str:
506 # bestrelpath is a quite slow function.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected