Skip to content

Commit

Permalink
Review fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Oct 1, 2024
1 parent 922d772 commit 8e8c117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ert/config/ert_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 1 addition & 6 deletions tests/ert/unit_tests/config/test_forward_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
)

0 comments on commit 8e8c117

Please sign in to comment.