From a56e25154b0754b46f0b4d17b42f6c26779901e0 Mon Sep 17 00:00:00 2001 From: Andres Date: Wed, 13 Mar 2024 11:09:42 -0300 Subject: [PATCH] update tests --- testing/test_mark.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/testing/test_mark.py b/testing/test_mark.py index bbce30e8d..cd3fde406 100644 --- a/testing/test_mark.py +++ b/testing/test_mark.py @@ -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