From 8e8c1175f9e1ceeca3a2f73c34c839d699ad0eb0 Mon Sep 17 00:00:00 2001 From: "Yngve S. Kristiansen" Date: Tue, 1 Oct 2024 12:43:25 +0200 Subject: [PATCH] Review fixup --- src/ert/config/ert_config.py | 2 +- tests/ert/unit_tests/config/test_forward_model.py | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ert/config/ert_config.py b/src/ert/config/ert_config.py index 825e7396273..2427331b000 100644 --- a/src/ert/config/ert_config.py +++ b/src/ert/config/ert_config.py @@ -611,7 +611,7 @@ def _create_list_of_forward_model_steps_to_run( except Exception as e: # type: ignore ConfigWarning.warn(str(e), context=fm_step.name) logger.warning( - f"Unexpected plugin forward model exception:" f"{e!s}" + f"Unexpected plugin forward model exception: " f"{e!s}" ) if errors: diff --git a/tests/ert/unit_tests/config/test_forward_model.py b/tests/ert/unit_tests/config/test_forward_model.py index 4dd240d9bdb..8cf9178533f 100644 --- a/tests/ert/unit_tests/config/test_forward_model.py +++ b/tests/ert/unit_tests/config/test_forward_model.py @@ -954,7 +954,7 @@ def validate_pre_experiment(self, fm_step_json: ForwardModelStepJSON) -> None: ) -def test_that_plugin_forward_model_unexpected_errors_show_as_warnings(tmp_path, caplog): +def test_that_plugin_forward_model_unexpected_errors_show_as_warnings(tmp_path): (tmp_path / "test.ert").write_text( """ NUM_REALIZATIONS 1 @@ -989,8 +989,3 @@ def validate_pre_experiment(self, fm_step_json: ForwardModelStepJSON) -> None: FMWithAssertionError, ] ).from_file(tmp_path / "test.ert") - - assert ( - "Unexpected plugin forward model exception:I should be a warning" - in caplog.messages - )