accomodate Floris' comments. (The reason was i just reinstanted the old code :)

--HG--
branch : reintroduce_pytest_fixture
This commit is contained in:
holger krekel 2015-04-22 21:04:36 +02:00
parent 9d5182eaad
commit a3aebfaefe
1 changed files with 6 additions and 1 deletions

View File

@ -16,7 +16,12 @@ from _pytest.core import HookCaller, add_method_wrapper
from _pytest.main import Session, EXIT_OK from _pytest.main import Session, EXIT_OK
# used at least by pytest-xdist plugin # used at least by pytest-xdist plugin
def pytest_funcarg___pytest(request): @pytest.fixture
def _pytest(request):
""" Return a helper which offers a gethookrecorder(hook)
method which returns a HookRecorder instance which helps
to make assertions about called hooks.
"""
return PytestArg(request) return PytestArg(request)
class PytestArg: class PytestArg: