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

Function pytest_runtest_setup

src/_pytest/runner.py:168–170  ·  view source on GitHub ↗
(item: Item)

Source from the content-addressed store, hash-verified

166
167
168def pytest_runtest_setup(item: Item) -> None:
169 _update_current_test_var(item, "setup")
170 item.session._setupstate.setup(item)
171
172
173def pytest_runtest_call(item: Item) -> None:

Callers

nothing calls this directly

Calls 2

_update_current_test_varFunction · 0.85
setupMethod · 0.45

Tested by

no test coverage detected