From 87bc173581afcc8336f2c9708b060d9f4200617b Mon Sep 17 00:00:00 2001 From: Eivind Jahren Date: Mon, 17 Mar 2025 11:12:17 +0100 Subject: [PATCH] Remove redundant test_ert_context This test is nearly identical to test_that_config_path_substitution_is_the_name_of_the_configs_directory --- tests/ert/unit_tests/test_enkf_main.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/ert/unit_tests/test_enkf_main.py b/tests/ert/unit_tests/test_enkf_main.py index 5295eb25b06..7f94ff04441 100644 --- a/tests/ert/unit_tests/test_enkf_main.py +++ b/tests/ert/unit_tests/test_enkf_main.py @@ -114,14 +114,3 @@ def test_assert_symlink_deleted(snake_oil_field_example, storage, run_paths): # ensure field symlink is replaced by file assert not os.path.islink(linkpath) - - -@pytest.mark.usefixtures("use_tmpdir") -def test_ert_context(): - # Write a minimal config file with DEFINE - with open("config_file.ert", "w", encoding="utf-8") as fout: - fout.write("NUM_REALIZATIONS 1\nDEFINE ") - ert_config = ErtConfig.from_file("config_file.ert") - context = ert_config.substitutions - my_path = context[""] - assert my_path == os.getcwd()