doc: mention that pytest.fixture's param is in request.param

This commit is contained in:
Daniel Hahler 2019-04-02 17:36:52 +02:00
parent 15ea5cef46
commit 9434541090
1 changed files with 1 additions and 0 deletions

View File

@ -1021,6 +1021,7 @@ def fixture(scope="function", params=None, autouse=False, ids=None, name=None):
:arg params: an optional list of parameters which will cause multiple :arg params: an optional list of parameters which will cause multiple
invocations of the fixture function and all of the tests invocations of the fixture function and all of the tests
using it. using it.
The current parameter is available in ``request.param``.
:arg autouse: if True, the fixture func is activated for all tests that :arg autouse: if True, the fixture func is activated for all tests that
can see it. If False (the default) then an explicit can see it. If False (the default) then an explicit