Skip to content

Commit

Permalink
adjust api tests as step parameter key changed from label to step id
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Jun 15, 2024
1 parent ec5923c commit 04ffd15
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/galaxy_test/api/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -5012,7 +5012,11 @@ def test_run_with_int_parameter(self):
content = self.dataset_populator.get_history_dataset_content(history_id)
assert len(content.splitlines()) == 1, content
invocation = self.workflow_populator.get_invocation(run_response.invocation_id)
assert invocation["input_step_parameters"]["int_input"]["parameter_value"] == 1
parameter_step = next(
(step for step in invocation["steps"] if step.get("workflow_step_label") == "int_input"), None
)
parameter_step_id = parameter_step["workflow_step_id"]
assert invocation["input_step_parameters"][parameter_step_id]["parameter_value"] == 1

run_response = self._run_workflow(
WORKFLOW_PARAMETER_INPUT_INTEGER_OPTIONAL,
Expand All @@ -5027,7 +5031,7 @@ def test_run_with_int_parameter(self):
)
invocation = self.workflow_populator.get_invocation(run_response.invocation_id)
# Optional step parameter without default value will not be recorded.
assert "int_input" not in invocation["input_step_parameters"]
assert not invocation["input_step_parameters"]

def test_run_with_int_parameter_nested(self):
with self.dataset_populator.test_history() as history_id:
Expand Down

0 comments on commit 04ffd15

Please sign in to comment.