Skip to content

Commit 790e6a7

Browse files
committed
Remove redundant test_ert_context
This test is nearly identical to test_that_config_path_substitution_is_the_name_of_the_configs_directory
1 parent 9f01ca5 commit 790e6a7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tests/ert/unit_tests/test_enkf_main.py

-11
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,3 @@ def test_assert_symlink_deleted(snake_oil_field_example, storage, run_paths):
114114

115115
# ensure field symlink is replaced by file
116116
assert not os.path.islink(linkpath)
117-
118-
119-
@pytest.mark.usefixtures("use_tmpdir")
120-
def test_ert_context():
121-
# Write a minimal config file with DEFINE
122-
with open("config_file.ert", "w", encoding="utf-8") as fout:
123-
fout.write("NUM_REALIZATIONS 1\nDEFINE <MY_PATH> <CONFIG_PATH>")
124-
ert_config = ErtConfig.from_file("config_file.ert")
125-
context = ert_config.substitutions
126-
my_path = context["<MY_PATH>"]
127-
assert my_path == os.getcwd()

0 commit comments

Comments
 (0)