@@ -29,7 +29,6 @@ def setUp(self):
2929 super ().setUp ()
3030 self .history_id = self .gi .histories .create_history (name = "TestGalaxyInvocations" )["id" ]
3131 self .dataset_id = self ._test_dataset (self .history_id )
32- self .threeline_dataset_id = self ._test_dataset (self .history_id , contents = "A\n B\n C" )
3332
3433 def tearDown (self ):
3534 self .gi .histories .delete_history (self .history_id , purge = True )
@@ -177,23 +176,21 @@ def test_rerun_invocation(self):
177176
178177 @test_util .skip_unless_galaxy ("release_24.02" )
179178 def test_rerun_invocation_with_input_params (self ):
179+ self .threeline_dataset_id = self ._test_dataset (self .history_id , contents = "A\n B\n C" )
180180 invocation = self ._invoke_x_random_lines_workflow ()
181181 self .gi .invocations .wait_for_invocation (invocation ["id" ])
182- params = dict
183- {
182+ params = {
184183 "how_many" : {
185184 "parameter_value" : "1" ,
186185 "label" : "how_many" ,
187186 }
188187 }
189188 rerun_invocation = self .gi .invocations .rerun_invocation (
190- invocation ["id" ], params_update = params , import_inputs_to_history = True
189+ invocation ["id" ], params_update = params , history_id = self . history_id
191190 )
192191 self .gi .invocations .wait_for_invocation (rerun_invocation ["id" ])
193- rerun_request = self .gi .invocations .get_invocation_request (rerun_invocation .id )
194- assert rerun_request .inputs ["how_many" ] == 1
195- history = self .gi .histories .show_history (rerun_invocation ["history_id" ], contents = True )
196- assert len (history ) == 3
192+ rerun_request = self .gi .invocations .get_invocation_request (rerun_invocation ["id" ])
193+ assert rerun_request ["inputs" ]["how_many" ] == "1"
197194
198195 def _invoke_workflow (self ) -> dict [str , Any ]:
199196 dataset = {"src" : "hda" , "id" : self .dataset_id }
0 commit comments