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

Method session

src/_pytest/fixtures.py:543–545  ·  view source on GitHub ↗

Pytest session object.

(self)

Source from the content-addressed store, hash-verified

541
542 @property
543 def session(self) -> "Session":
544 """Pytest session object."""
545 return self._pyfuncitem.session # type: ignore[no-any-return]
546
547 def addfinalizer(self, finalizer: Callable[[], object]) -> None:
548 """Add finalizer/teardown function to be called after the last test

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected