Mention FixtureLookupError in getfixturevalue docs

This commit is contained in:
Bruno Oliveira
2020-03-03 10:05:19 -03:00
parent a03e076e89
commit aac11e5e75

View File

@@ -482,6 +482,9 @@ class FixtureRequest:
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
or test function body.
:raise pytest.FixtureLookupError:
If the given fixture could not be found.
"""
return self._get_active_fixturedef(argname).cached_result[0]