Mention FixtureLookupError in getfixturevalue docs

This commit is contained in:
Bruno Oliveira 2020-03-03 10:05:19 -03:00
parent a03e076e89
commit aac11e5e75
1 changed files with 3 additions and 0 deletions

View File

@ -482,6 +482,9 @@ class FixtureRequest:
But if you can only decide whether to use another fixture at test But if you can only decide whether to use another fixture at test
setup time, you may use this function to retrieve it inside a fixture setup time, you may use this function to retrieve it inside a fixture
or test function body. or test function body.
:raise pytest.FixtureLookupError:
If the given fixture could not be found.
""" """
return self._get_active_fixturedef(argname).cached_result[0] return self._get_active_fixturedef(argname).cached_result[0]