MCPcopy
hub / github.com/pytest-dev/pytest / pytest_sessionstart

Method pytest_sessionstart

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

Source from the content-addressed store, hash-verified

788
789 @hookimpl(wrapper=True, tryfirst=True)
790 def pytest_sessionstart(self) -> Generator[None]:
791 self.log_cli_handler.set_when("sessionstart")
792
793 with catching_logs(self.log_cli_handler, level=self.log_cli_level):
794 with catching_logs(self.log_file_handler, level=self.log_file_level):
795 return (yield)
796
797 @hookimpl(wrapper=True, tryfirst=True)
798 def pytest_collection(self) -> Generator[None]:

Callers

nothing calls this directly

Calls 2

catching_logsClass · 0.85
set_whenMethod · 0.45

Tested by

no test coverage detected