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

Method pytest_runtest_setup

src/_pytest/logging.py:713–718  ·  view source on GitHub ↗
(self, item: nodes.Item)

Source from the content-addressed store, hash-verified

711
712 @hookimpl(hookwrapper=True)
713 def pytest_runtest_setup(self, item: nodes.Item) -> Generator[None, None, None]:
714 self.log_cli_handler.set_when("setup")
715
716 empty: Dict[str, List[logging.LogRecord]] = {}
717 item.stash[caplog_records_key] = empty
718 yield from self._runtest_for(item, "setup")
719
720 @hookimpl(hookwrapper=True)
721 def pytest_runtest_call(self, item: nodes.Item) -> Generator[None, None, None]:

Callers 1

test_pyfunc_callMethod · 0.45

Calls 2

_runtest_forMethod · 0.95
set_whenMethod · 0.45

Tested by 1

test_pyfunc_callMethod · 0.36