Update src/_pytest/fixtures.py

This commit is contained in:
Ran Benita 2024-03-16 23:18:32 +02:00 committed by GitHub
parent 73ae964918
commit 43f394f128
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -544,10 +544,9 @@ class FixtureRequest(abc.ABC):
If the given fixture could not be found.
"""
# Note that in addition to the use case described in the docstring,
# getfixturevalue() is also called by pytest itself during item setup to
# evaluate the fixtures that are requested statically
# getfixturevalue() is also called by pytest itself during item and fixture
# setup to evaluate the fixtures that are requested statically
# (using function parameters, autouse, etc).
# As well as called by `pytest_fixture_setup()`
fixturedef = self._get_active_fixturedef(argname)
assert fixturedef.cached_result is not None, (