From a156a6b176ae1d5ebdf1b6f3b7b1131671f67b7f Mon Sep 17 00:00:00 2001 From: Eivind Jahren Date: Mon, 9 Dec 2024 15:32:05 +0100 Subject: [PATCH] Mark tests taking more than a second as integration test --- tests/ert/unit_tests/config/test_ert_config.py | 1 + tests/ert/unit_tests/config/test_forward_model.py | 1 + tests/ert/unit_tests/gui/simulation/view/test_realization.py | 1 + tests/ert/unit_tests/scheduler/test_local_driver.py | 1 + 4 files changed, 4 insertions(+) diff --git a/tests/ert/unit_tests/config/test_ert_config.py b/tests/ert/unit_tests/config/test_ert_config.py index 242fb916627..ad7dd4b6c75 100644 --- a/tests/ert/unit_tests/config/test_ert_config.py +++ b/tests/ert/unit_tests/config/test_ert_config.py @@ -480,6 +480,7 @@ def test_that_ert_config_has_valid_schema(): @pytest.mark.filterwarnings("ignore::ert.config.ConfigWarning") @pytest.mark.usefixtures("set_site_config") +@pytest.mark.integration_test @settings(max_examples=10) @given(config_generators()) def test_that_parsing_ert_config_result_in_expected_values( diff --git a/tests/ert/unit_tests/config/test_forward_model.py b/tests/ert/unit_tests/config/test_forward_model.py index ebc935f10cf..b2afc1fca5f 100644 --- a/tests/ert/unit_tests/config/test_forward_model.py +++ b/tests/ert/unit_tests/config/test_forward_model.py @@ -330,6 +330,7 @@ def test_forward_model_arglist_with_weird_characters(): ] +@pytest.mark.integration_test @settings(max_examples=10) @given(config_generators()) def test_ert_config_throws_on_missing_forward_model_step( diff --git a/tests/ert/unit_tests/gui/simulation/view/test_realization.py b/tests/ert/unit_tests/gui/simulation/view/test_realization.py index 4169e48f361..4de9ecab378 100644 --- a/tests/ert/unit_tests/gui/simulation/view/test_realization.py +++ b/tests/ert/unit_tests/gui/simulation/view/test_realization.py @@ -51,6 +51,7 @@ def sizeHint(self, option, index) -> QSize: return self._size +@pytest.mark.integration_test def test_delegate_drawing_count(small_snapshot, qtbot): it = 0 widget = RealizationWidget(it) diff --git a/tests/ert/unit_tests/scheduler/test_local_driver.py b/tests/ert/unit_tests/scheduler/test_local_driver.py index e03205bb273..1cb5840b8f2 100644 --- a/tests/ert/unit_tests/scheduler/test_local_driver.py +++ b/tests/ert/unit_tests/scheduler/test_local_driver.py @@ -69,6 +69,7 @@ async def test_kill_before_running(sleep_before_killing): @pytest.mark.timeout(10) +@pytest.mark.integration_test async def test_kill_unresponsive_process(monkeypatch, tmp_path): # Reduce timeout to something more appropriate for a test monkeypatch.setattr(local_driver, "_TERMINATE_TIMEOUT", 0.1)