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

Method pytest_collection

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

Source from the content-addressed store, hash-verified

661
662 @hookimpl(hookwrapper=True, tryfirst=True)
663 def pytest_collection(self) -> Generator[None, None, None]:
664 self.log_cli_handler.set_when("collection")
665
666 with catching_logs(self.log_cli_handler, level=self.log_cli_level):
667 with catching_logs(self.log_file_handler, level=self.log_file_level):
668 yield
669
670 @hookimpl(hookwrapper=True)
671 def pytest_runtestloop(self, session: Session) -> Generator[None, None, None]:

Callers 1

_mainFunction · 0.45

Calls 2

catching_logsClass · 0.85
set_whenMethod · 0.45

Tested by

no test coverage detected