From aac11e5e75b4aef295e857a2ae96e4438f28d6b9 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 3 Mar 2020 10:05:19 -0300 Subject: [PATCH] Mention FixtureLookupError in getfixturevalue docs --- src/_pytest/fixtures.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/_pytest/fixtures.py b/src/_pytest/fixtures.py index cdd249d93..61849b762 100644 --- a/src/_pytest/fixtures.py +++ b/src/_pytest/fixtures.py @@ -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]