Skip to content

Commit 9434541

Browse files
committed
doc: mention that pytest.fixture's param is in request.param
1 parent 15ea5ce commit 9434541

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/_pytest/fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,7 @@ def fixture(scope="function", params=None, autouse=False, ids=None, name=None):
10211021
:arg params: an optional list of parameters which will cause multiple
10221022
invocations of the fixture function and all of the tests
10231023
using it.
1024+
The current parameter is available in ``request.param``.
10241025
10251026
:arg autouse: if True, the fixture func is activated for all tests that
10261027
can see it. If False (the default) then an explicit

0 commit comments

Comments
 (0)