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

Method path

src/_pytest/fixtures.py:530–534  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

528
529 @property
530 def path(self) -> Path:
531 if self.scope not in ("function", "class", "module", "package"):
532 raise AttributeError(f"path not available in {self.scope}-scoped context")
533 # TODO: Remove ignore once _pyfuncitem is properly typed.
534 return self._pyfuncitem.path # type: ignore
535
536 @property
537 def keywords(self) -> MutableMapping[str, Any]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected