Mention FixtureLookupError in getfixturevalue docs
This commit is contained in:
parent
a03e076e89
commit
aac11e5e75
|
@ -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]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue