Skip to content

Commit

Permalink
Fix test_that_no_error_thrown_when_checking_eclipse_version_and_no_ec…
Browse files Browse the repository at this point in the history
…l_config_defined for azure
  • Loading branch information
DanSava committed Aug 27, 2024
1 parent 4bbfd5c commit 8511d46
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/unit_tests/config/test_forward_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,13 @@ def test_that_no_error_thrown_when_checking_eclipse_version_and_no_ecl_config_de
# Write config file
config_file_name = "test.ert"
Path(config_file_name).write_text(ert_config_contents, encoding="utf-8")

_ = ErtConfig.with_plugins().from_file(config_file_name)
with patch(
"ert.plugins.hook_implementations.forward_model_steps.ErtPluginManager"
) as mock:
instance = mock.return_value
instance.get_ecl100_config_path.return_value = None
instance.get_ecl300_config_path.return_value = None
_ = ErtConfig.with_plugins().from_file(config_file_name)


def test_that_plugin_forward_models_are_installed(tmp_path):
Expand Down

0 comments on commit 8511d46

Please sign in to comment.