Skip to content

Commit

Permalink
Ignore unimportant ConfigWarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
frode-aarstad committed Jan 6, 2025
1 parent 864c1e8 commit 839610b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/everest/conftest.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 839610b

Please sign in to comment.