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

Method pytest_collection

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

Source from the content-addressed store, hash-verified

796
797 @hookimpl(wrapper=True, tryfirst=True)
798 def pytest_collection(self) -> Generator[None]:
799 self.log_cli_handler.set_when("collection")
800
801 with catching_logs(self.log_cli_handler, level=self.log_cli_level):
802 with catching_logs(self.log_file_handler, level=self.log_file_level):
803 return (yield)
804
805 @hookimpl(wrapper=True)
806 def pytest_runtestloop(self, session: Session) -> Generator[None, object, object]:

Callers 1

_mainFunction · 0.45

Calls 2

catching_logsClass · 0.85
set_whenMethod · 0.45

Tested by

no test coverage detected