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

Method pytest_sessionstart

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

Source from the content-addressed store, hash-verified

653
654 @hookimpl(hookwrapper=True, tryfirst=True)
655 def pytest_sessionstart(self) -> Generator[None, None, None]:
656 self.log_cli_handler.set_when("sessionstart")
657
658 with catching_logs(self.log_cli_handler, level=self.log_cli_level):
659 with catching_logs(self.log_file_handler, level=self.log_file_level):
660 yield
661
662 @hookimpl(hookwrapper=True, tryfirst=True)
663 def pytest_collection(self) -> Generator[None, None, None]:

Callers

nothing calls this directly

Calls 2

catching_logsClass · 0.85
set_whenMethod · 0.45

Tested by

no test coverage detected