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

Function pytest_sessionfinish

src/_pytest/hookspec.py:606–614  ·  view source on GitHub ↗

Called after whole test run finished, right before returning the exit status to the system. :param pytest.Session session: The pytest session object. :param int exitstatus: The status which pytest will return to the system.

(
    session: "Session",
    exitstatus: Union[int, "ExitCode"],
)

Source from the content-addressed store, hash-verified

604
605
606def pytest_sessionfinish(
607 session: "Session",
608 exitstatus: Union[int, "ExitCode"],
609) -> None:
610 """Called after whole test run finished, right before returning the exit status to the system.
611
612 :param pytest.Session session: The pytest session object.
613 :param int exitstatus: The status which pytest will return to the system.
614 """
615
616
617def pytest_unconfigure(config: "Config") -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected