Skip to content

Commit 004bb7a

Browse files
use WORKFLOW_SIMPLE_CAT_TWICE in refactor API test
1 parent 995bd52 commit 004bb7a

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

lib/galaxy_test/api/test_workflows.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
WORKFLOW_PARAMETER_INPUT_INTEGER_REQUIRED,
6161
WORKFLOW_RENAME_ON_INPUT,
6262
WORKFLOW_RUNTIME_PARAMETER_AFTER_PAUSE,
63+
WORKFLOW_SIMPLE_CAT_TWICE,
6364
WORKFLOW_WITH_BAD_COLUMN_PARAMETER,
6465
WORKFLOW_WITH_BAD_COLUMN_PARAMETER_GOOD_TEST_DATA,
6566
WORKFLOW_WITH_CUSTOM_REPORT_1,
@@ -1114,21 +1115,12 @@ def test_refactor(self):
11141115

11151116
def test_refactor_specific_version(self):
11161117
"""Test that refactoring can target a specific workflow version."""
1117-
# Create initial workflow (version 0) with label "test_input"
1118-
workflow_id = self.workflow_populator.upload_yaml_workflow("""
1119-
class: GalaxyWorkflow
1120-
inputs:
1121-
test_input: data
1122-
steps:
1123-
first_cat:
1124-
tool_id: cat
1125-
in:
1126-
input1: test_input
1127-
""")
1118+
# Create initial workflow (version 0) with label "input1"
1119+
workflow_id = self.workflow_populator.upload_yaml_workflow(WORKFLOW_SIMPLE_CAT_TWICE)
11281120

11291121
# Download and verify initial state (version 0)
11301122
workflow_v0 = self.workflow_populator.download_workflow(workflow_id, version=0)
1131-
assert workflow_v0["steps"]["0"]["label"] == "test_input"
1123+
assert workflow_v0["steps"]["0"]["label"] == "input1"
11321124

11331125
# Refactor (without version param) to create version 1 with label "v1_label"
11341126
actions_v1 = [
@@ -1145,7 +1137,7 @@ def test_refactor_specific_version(self):
11451137

11461138
# Verify version 0 still has original label
11471139
workflow_v0_check = self.workflow_populator.download_workflow(workflow_id, version=0)
1148-
assert workflow_v0_check["steps"]["0"]["label"] == "test_input"
1140+
assert workflow_v0_check["steps"]["0"]["label"] == "input1"
11491141

11501142
# Verify version 1 (latest) has the refactored label
11511143
workflow_v1 = self.workflow_populator.download_workflow(workflow_id)

0 commit comments

Comments
 (0)