From 839610bb7c6a249cf03fdccf7f0e467b68a9f88a Mon Sep 17 00:00:00 2001 From: Frode Aarstad Date: Mon, 6 Jan 2025 10:34:32 +0100 Subject: [PATCH] Ignore unimportant ConfigWarnings --- tests/everest/conftest.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/everest/conftest.py b/tests/everest/conftest.py index f694fe70743..11a31c207b3 100644 --- a/tests/everest/conftest.py +++ b/tests/everest/conftest.py @@ -1,6 +1,7 @@ import os import shutil import tempfile +import warnings from collections.abc import Callable, Iterator from copy import deepcopy from pathlib import Path @@ -10,7 +11,7 @@ import pytest import yaml -from ert.config import QueueSystem +from ert.config import ConfigWarning, QueueSystem from ert.ensemble_evaluator import EvaluatorServerConfig from ert.run_models.everest_run_model import EverestRunModel from everest.config import EverestConfig @@ -19,6 +20,15 @@ from tests.everest.utils import relpath +@pytest.fixture(autouse=True) +def filter_warnings(): + warnings.filterwarnings( + "ignore", + message=".*Forward model might not write the required output.*", + category=ConfigWarning, + ) + + @pytest.fixture(scope="session") def testdata() -> Path: return Path(__file__).parent / "test_data"