Skip to content

Commit 8ada2cc

Browse files
committed
Revert "Deprecate DESIGN_KW"
This reverts commit f67ebd5.
1 parent 1b0244a commit 8ada2cc

2 files changed

Lines changed: 0 additions & 35 deletions

File tree

src/ert/config/parsing/config_schema_deprecations.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,4 @@
217217
),
218218
check=lambda line: line[0] == "DESIGN2PARAMS",
219219
),
220-
DeprecationInfo(
221-
keyword="FORWARD_MODEL",
222-
message=(
223-
"FORWARD_MODEL DESIGN_KW will be replaced with RUN_TEMPLATE. "
224-
"DESIGN2PARAMS has been replaced by DESIGN_MATRIX, so the "
225-
"parameters are already available for magic string replacement "
226-
"with the RUN_TEMPLATE keyword. Please use this format: "
227-
"'RUN_TEMPLATE my_text_file_template.txt my_text_output_file.txt'"
228-
),
229-
check=lambda line: line[0] == "DESIGN_KW",
230-
),
231220
]

tests/ert/unit_tests/config/parsing/test_config_schema_deprecations.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -230,27 +230,3 @@ def test_that_forward_model_design2params_is_deprecated():
230230
"<designsheet>=TheDesignSheet, <defaultssheet>=TheDefaultsSheet)"
231231
)
232232
ErtConfig.from_file_contents(f"NUM_REALIZATIONS 1\n{config}")
233-
234-
235-
def test_that_forward_model_design_kw_is_deprecated():
236-
# Create a mock DESIGN_KW forward model step, since it is not installed
237-
mock_design_kw_step = UserInstalledForwardModelStep(
238-
name="DESIGN_KW",
239-
executable="design_kw",
240-
)
241-
242-
with (
243-
patch(
244-
"ert.config.ert_config.installed_forward_model_steps_from_dict",
245-
return_value={"DESIGN_KW": mock_design_kw_step},
246-
),
247-
pytest.warns(
248-
ConfigWarning,
249-
match="FORWARD_MODEL DESIGN_KW will be replaced with RUN_TEMPLATE.",
250-
),
251-
):
252-
config = (
253-
"FORWARD_MODEL DESIGN_KW(<template_file>=template.tmpl, "
254-
"<result_file>=output.txt)"
255-
)
256-
ErtConfig.from_file_contents(f"NUM_REALIZATIONS 1\n{config}")

0 commit comments

Comments
 (0)