diff --git a/tests/conftest.py b/tests/conftest.py index b2fc766e..3d097159 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -42,7 +42,7 @@ def no_cache(monkeypatch): @pytest.fixture(autouse=True) def functional(request): - if request.node.get_marker('functional') \ + if request.node.get_closest_marker('functional') \ and not request.config.getoption('enable_functional'): pytest.skip('functional tests are disabled')