Skip to content

Commit a27c824

Browse files
authored
Merge pull request #2146 from lwm/minor-docs-fixup
Fix fixture/parametrize override example.
2 parents fc74eb3 + f94189b commit a27c824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/en/fixture.rst

+1-1
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)