From f94189b48b7a50ad51f9b40c6f26a93ccc9565fb Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 20 Dec 2016 01:48:32 +0100 Subject: [PATCH] Fix wrong fixture name. Closes #2143. --- doc/en/fixture.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/en/fixture.rst b/doc/en/fixture.rst index bbc4a95c4..9bc4f6084 100644 --- a/doc/en/fixture.rst +++ b/doc/en/fixture.rst @@ -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).