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

Method pytest_sessionfinish

src/_pytest/logging.py:739–744  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

737
738 @hookimpl(hookwrapper=True, tryfirst=True)
739 def pytest_sessionfinish(self) -> Generator[None, None, None]:
740 self.log_cli_handler.set_when("sessionfinish")
741
742 with catching_logs(self.log_cli_handler, level=self.log_cli_level):
743 with catching_logs(self.log_file_handler, level=self.log_file_level):
744 yield
745
746 @hookimpl
747 def pytest_unconfigure(self) -> None:

Callers

nothing calls this directly

Calls 2

catching_logsClass · 0.85
set_whenMethod · 0.45

Tested by

no test coverage detected