Skip to content

Commit

Permalink
Merge pull request #2146 from lwm/minor-docs-fixup
Browse files Browse the repository at this point in the history
Fix fixture/parametrize override example.
  • Loading branch information
nicoddemus authored Dec 26, 2016
2 parents fc74eb3 + f94189b commit a27c824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/en/fixture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ Given the tests file structure is:

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

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

0 comments on commit a27c824

Please sign in to comment.