Add collection semantics test refs and workflow tests for flat over paired_or_unpaired

Update collection_semantics.yml test references and add workflow framework
tests for flat list and flat sample_sheet mapped over paired_or_unpaired.
Fix mislabeled test #4 doc string.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
John Chilton
2026-03-17 15:15:28 -04:00
co-authored by Claude Opus 4.6
parent 494722a792
commit fffdb4822d
2 changed files with 48 additions and 3 deletions
@@ -882,7 +882,7 @@
tool_runtime:
api_test: "test_tool_execute.py::test_map_over_paired_or_unpaired_with_list"
workflow_runtime:
framework_test: "collection_semantics_paired_or_unpaired_4"
framework_test: "collection_semantics_paired_or_unpaired_7"
workflow_editor: "accepts list -> paired_or_unpaired connection"
- doc: |
@@ -1129,6 +1129,10 @@
invocation: {inputs: {i: {type: collection, ref: C_AS_UNPAIRED_n}}}
output: o
tests:
tool_runtime:
api_test: "test_tool_execute.py::test_map_over_paired_or_unpaired_with_sample_sheet"
workflow_runtime:
framework_test: "collection_semantics_paired_or_unpaired_8"
workflow_editor: "accepts sample_sheet -> paired_or_unpaired connection"
- example:
@@ -93,8 +93,8 @@
collection_type: list:list
- doc: |
MAPPING_LIST_OVER_PAIRED_OR_UNPAIRED: A list:paired_or_unpaired collection mapped over
a paired_or_unpaired tool input produces a list output collection.
MAPPING_LIST_PAIRED_OR_UNPAIRED_OVER_PAIRED_OR_UNPAIRED: A list:paired_or_unpaired
collection mapped over a paired_or_unpaired tool input produces a list output collection.
job:
input1:
class: Collection
@@ -164,3 +164,44 @@
wf_output:
class: Collection
collection_type: sample_sheet
- doc: |
MAPPING_LIST_OVER_PAIRED_OR_UNPAIRED: A flat list mapped over a
paired_or_unpaired tool input via single_datasets produces a list output.
job:
input1:
class: Collection
collection_type: list
elements:
- identifier: el1
class: File
contents: "element 1"
- identifier: el2
class: File
contents: "element 2"
outputs:
wf_output:
class: Collection
collection_type: list
- doc: |
SAMPLE_SHEET_MAPPING_OVER_PAIRED_OR_UNPAIRED: A flat sample_sheet mapped over
a paired_or_unpaired tool input via single_datasets produces a sample_sheet output.
job:
input1:
class: Collection
collection_type: sample_sheet
rows:
el1: []
el2: []
elements:
- identifier: el1
class: File
contents: "element 1"
- identifier: el2
class: File
contents: "element 2"
outputs:
wf_output:
class: Collection
collection_type: sample_sheet