We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d56b1af commit 934a0b1Copy full SHA for 934a0b1
src/_pytest/fixtures.py
@@ -1696,11 +1696,7 @@ def pytest_generate_tests(self, metafunc: Metafunc) -> None:
1696
"""Generate new tests based on parametrized fixtures used by the given metafunc"""
1697
for argname in metafunc.fixturenames:
1698
# Get the FixtureDefs for the argname.
1699
- fixture_defs = metafunc._arg2fixturedefs.get(argname)
1700
- if not fixture_defs:
1701
- # Will raise FixtureLookupError at setup time if not parametrized somewhere
1702
- # else (e.g @pytest.mark.parametrize)
1703
- continue
+ fixture_defs = metafunc._arg2fixturedefs.get(argname, ())
1704
1705
# In the common case we only look at the fixture def with the
1706
# closest scope (last in the list). But if the fixture overrides
0 commit comments