update tests

This commit is contained in:
Andres 2024-03-13 11:09:42 -03:00
parent 143c703b3f
commit a56e25154b
1 changed files with 15 additions and 0 deletions

View File

@ -449,6 +449,21 @@ def test_parametrized_with_kwargs(pytester: Pytester) -> None:
def test_parametrize_overriden_extended_fixture(pytester: Pytester) -> None:
"""Overriden fixtures must pass over dependend fixtures for parameterization (#12091)"""
pytester.makeconftest(
"""
import pytest
@pytest.fixture
def not_needed():
assert False, "Should not be called!"
@pytest.fixture
def main(foo):
assert False, "Should not be called!"
"""
)
py_file = pytester.makepyfile(
"""\
import pytest