@@ -175,23 +175,26 @@ def test_rerun_invocation(self):
175175 history = self .gi .histories .show_history (rerun_invocation ["history_id" ], contents = True )
176176 assert len (history ) == 3
177177
178- @test_util .skip_unless_galaxy ("release_24.02 " )
178+ @test_util .skip_unless_galaxy ("release_21.01 " )
179179 def test_rerun_invocation_with_input_params (self ):
180180 threeline_dataset_id = self ._test_dataset (self .history_id , contents = "A\n B\n C" )
181181 invocation = self ._invoke_x_random_lines_workflow (threeline_dataset_id )
182182 self .gi .invocations .wait_for_invocation (invocation ["id" ])
183- params = {
184- "how_many" : {
185- "parameter_value" : "1" ,
186- "label" : "how_many" ,
187- }
188- }
183+ rerun_invocation = self .gi .invocations .rerun_invocation (invocation ["id" ], history_id = self .history_id )
184+ self .gi .invocations .wait_for_invocation (rerun_invocation ["id" ])
185+
186+ @test_util .skip_unless_galaxy ("release_24.2" )
187+ def test_rerun_invocation_with_input_params_changed (self ):
188+ threeline_dataset_id = self ._test_dataset (self .history_id , contents = "A\n B\n C" )
189+ invocation = self ._invoke_x_random_lines_workflow (threeline_dataset_id )
190+ self .gi .invocations .wait_for_invocation (invocation ["id" ])
191+ inputs_update = {"how_many" : 1 }
189192 rerun_invocation = self .gi .invocations .rerun_invocation (
190- invocation ["id" ], params_update = params , history_id = self .history_id
193+ invocation ["id" ], inputs_update = inputs_update , history_id = self .history_id
191194 )
192195 self .gi .invocations .wait_for_invocation (rerun_invocation ["id" ])
193196 rerun_request = self .gi .invocations .get_invocation_request (rerun_invocation ["id" ])
194- assert rerun_request ["inputs" ]["how_many" ] == "1"
197+ assert rerun_request ["inputs" ]["how_many" ] == 1
195198
196199 def _invoke_workflow (self ) -> dict [str , Any ]:
197200 dataset = {"src" : "hda" , "id" : self .dataset_id }
@@ -213,7 +216,7 @@ def _invoke_pause_workflow(self) -> dict[str, Any]:
213216 def _invoke_x_random_lines_workflow (self , dataset_id : str ) -> dict [str , Any ]:
214217 return self .gi .workflows .invoke_workflow (
215218 self .x_random_lines_workflow_id ,
216- inputs = {"from_what" : {"src" : "hda" , "id" : dataset_id }, "how_many" : "2" },
219+ inputs = {"from_what" : {"src" : "hda" , "id" : dataset_id }, "how_many" : 2 },
217220 history_id = self .history_id ,
218221 inputs_by = "name" ,
219222 )
0 commit comments