File tree Expand file tree Collapse file tree
tests/ert/unit_tests/config/parsing Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff line change @@ -228,27 +228,3 @@ def test_that_forward_model_design2params_is_deprecated():
228228 "<designsheet>=TheDesignSheet, <defaultssheet>=TheDefaultsSheet)"
229229 )
230230 ErtConfig .from_file_contents (f"NUM_REALIZATIONS 1\n { config } " )
231-
232-
233- def test_that_forward_model_design_kw_is_deprecated ():
234- # Create a mock DESIGN_KW forward model step, since it is not installed
235- mock_design_kw_step = ForwardModelStep (
236- name = "DESIGN_KW" ,
237- executable = "design_kw" ,
238- )
239-
240- with (
241- patch (
242- "ert.config.ert_config.installed_forward_model_steps_from_dict" ,
243- return_value = {"DESIGN_KW" : mock_design_kw_step },
244- ),
245- pytest .warns (
246- ConfigWarning ,
247- match = "FORWARD_MODEL DESIGN_KW will be replaced with RUN_TEMPLATE." ,
248- ),
249- ):
250- config = (
251- "FORWARD_MODEL DESIGN_KW(<template_file>=template.tmpl, "
252- "<result_file>=output.txt)"
253- )
254- ErtConfig .from_file_contents (f"NUM_REALIZATIONS 1\n { config } " )
You can’t perform that action at this time.
0 commit comments