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

Function _pytest

src/_pytest/pytester.py:193–197  ·  view source on GitHub ↗

Return a helper which offers a gethookrecorder(hook) method which returns a HookRecorder instance which helps to make assertions about called hooks.

(request: FixtureRequest)

Source from the content-addressed store, hash-verified

191
192@fixture
193def _pytest(request: FixtureRequest) -> "PytestArg":
194 """Return a helper which offers a gethookrecorder(hook) method which
195 returns a HookRecorder instance which helps to make assertions about called
196 hooks."""
197 return PytestArg(request)
198
199
200class PytestArg:

Callers

nothing calls this directly

Calls 1

PytestArgClass · 0.85

Tested by

no test coverage detected