From b12d8f6c5c8ffce80fabe1a2f68ad97251665d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Thu, 14 Mar 2024 08:47:37 +0100 Subject: [PATCH] Remove fixture marks that has no effect See https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function --- tests/unit_tests/gui/conftest.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/unit_tests/gui/conftest.py b/tests/unit_tests/gui/conftest.py index 7772f705a8c..ef2613f29e6 100644 --- a/tests/unit_tests/gui/conftest.py +++ b/tests/unit_tests/gui/conftest.py @@ -61,7 +61,6 @@ def handle_manage_dialog(): manage_tool.trigger() -@pytest.mark.usefixtures("use_tmpdir") @pytest.fixture(name="opened_main_window", scope="module") def opened_main_window_fixture(source_root, tmpdir_factory) -> ErtMainWindow: with pytest.MonkeyPatch.context() as mp: @@ -130,14 +129,12 @@ def opened_main_window_clean(source_root, tmpdir): yield gui -@pytest.mark.usefixtures("use_tmpdir, opened_main_window") @pytest.fixture(scope="module") def esmda_has_run(run_experiment): # Runs a default ES-MDA run run_experiment(MultipleDataAssimilation) -@pytest.mark.usefixtures("use_tmpdir") @pytest.fixture(name="run_experiment", scope="module") def run_experiment_fixture(request, opened_main_window): def func(experiment_mode): @@ -193,7 +190,6 @@ def handle_dialog(): return func -@pytest.mark.usefixtures("use_tmpdir") @pytest.fixture(scope="module") def ensemble_experiment_has_run(opened_main_window, run_experiment, request): gui = opened_main_window