Skip to content

Commit f94189b

Browse files
committed
Fix wrong fixture name. Closes #2143.
1 parent da40bcf commit f94189b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/en/fixture.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ Given the tests file structure is:
10021002

10031003
@pytest.mark.parametrize('username', ['directly-overridden-username-other'])
10041004
def test_username_other(other_username):
1005-
assert username == 'other-directly-overridden-username-other'
1005+
assert other_username == 'other-directly-overridden-username-other'
10061006

10071007
In the example above, a fixture value is overridden by the test parameter value. Note that the value of the fixture
10081008
can be overridden this way even if the test doesn't use it directly (doesn't mention it in the function prototype).

0 commit comments

Comments
 (0)