From 8511d467e6811ba0c9e25655ee4c4feb2d63657e Mon Sep 17 00:00:00 2001 From: DanSava Date: Tue, 27 Aug 2024 14:24:57 +0300 Subject: [PATCH] Fix test_that_no_error_thrown_when_checking_eclipse_version_and_no_ecl_config_defined for azure --- tests/unit_tests/config/test_forward_model.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/unit_tests/config/test_forward_model.py b/tests/unit_tests/config/test_forward_model.py index 021c98f1034..5a3daa34a98 100644 --- a/tests/unit_tests/config/test_forward_model.py +++ b/tests/unit_tests/config/test_forward_model.py @@ -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):