Skip to content

Commit

Permalink
Add test for changing dynamic collection datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Mar 21, 2024
1 parent f111c4f commit 23cf6a2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions lib/galaxy_test/api/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -4000,6 +4000,36 @@ def test_change_datatype_collection_map_over(self):
assert forward["object"]["file_ext"] == "csv"
assert reverse["object"]["file_ext"] == "csv"

@skip_without_tool("collection_split_on_column")
def test_change_datatype_discovered_outputs(self):
with self.dataset_populator.test_history() as history_id:
jobs_summary = self._run_workflow(
"""
class: GalaxyWorkflow
inputs:
input: data
steps:
split:
tool_id: collection_split_on_column
in:
input1: input
outputs:
split_output:
change_datatype: csv
outputs:
output:
outputSource: split/split_output
test_data:
input: "1\t2\t3"
""",
history_id=history_id,
)
inv = self.workflow_populator.get_invocation(jobs_summary.invocation_id, step_details=True)
details = self.dataset_populator.get_history_collection_details(
history_id=history_id, content_id=inv["output_collections"]["output"]["id"]
)
assert details["elements"][0]["object"]["file_ext"] == "csv"

@skip_without_tool("collection_type_source_map_over")
def test_mapping_and_subcollection_mapping(self):
with self.dataset_populator.test_history() as history_id:
Expand Down

0 comments on commit 23cf6a2

Please sign in to comment.