Skip to content

Commit

Permalink
Ensure metadata is copied for expression tool outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Mar 19, 2024
1 parent 6805e10 commit aac4cc1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/galaxy_test/api/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -2006,7 +2006,7 @@ def test_run_workflow_pick_value_bam_pja(self):
# Makes sure that setting metadata on expression tool data outputs
# doesn't break result evaluation.
with self.dataset_populator.test_history() as history_id:
self._run_workflow(
summary = self._run_workflow(
"""class: GalaxyWorkflow
inputs:
some_file:
Expand All @@ -2031,6 +2031,9 @@ def test_run_workflow_pick_value_bam_pja(self):
- __index__: 0
value:
__class__: RuntimeValue
outputs:
pick_out:
outputSource: pick_value/data_param
""",
test_data="""
some_file:
Expand All @@ -2040,6 +2043,14 @@ def test_run_workflow_pick_value_bam_pja(self):
""",
history_id=history_id,
)
invocation_details = self.workflow_populator.get_invocation(summary.invocation_id, step_details=True)
# Make sure metadata is actually available
pick_value_hda = invocation_details["outputs"]["pick_out"]
dataset_details = self.dataset_populator.get_history_dataset_details(
history_id=history_id, content_id=pick_value_hda["id"]
)
assert dataset_details["metadata_reference_names"]
assert dataset_details["metadata_bam_index"]

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

0 comments on commit aac4cc1

Please sign in to comment.