Skip to content

Commit ffea10e

Browse files
committed
Ignore unimportant ConfigWarnings
1 parent 6a82399 commit ffea10e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/everest/conftest.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import shutil
33
import tempfile
4+
import warnings
45
from collections.abc import Callable, Iterator
56
from copy import deepcopy
67
from pathlib import Path
@@ -10,7 +11,7 @@
1011
import pytest
1112
import yaml
1213

13-
from ert.config import QueueSystem
14+
from ert.config import ConfigWarning, QueueSystem
1415
from ert.ensemble_evaluator import EvaluatorServerConfig
1516
from ert.run_models.everest_run_model import EverestRunModel
1617
from everest.config import EverestConfig
@@ -19,6 +20,15 @@
1920
from tests.everest.utils import relpath
2021

2122

23+
@pytest.fixture(autouse=True)
24+
def filter_warnings():
25+
warnings.filterwarnings(
26+
"ignore",
27+
message=".*Forward model might not write the required output.*",
28+
category=ConfigWarning,
29+
)
30+
31+
2232
@pytest.fixture(scope="session")
2333
def testdata() -> Path:
2434
return Path(__file__).parent / "test_data"

0 commit comments

Comments
 (0)