@pytest.fixture
def _pytest(request):
 return PytestArg(request)

@ pytest . fixture def _pytest ( request ) : return PytestArg ( request )
return a helper which offers a gethookrecorder method which returns a hookrecorder instance which helps to make assertions about called hooks .