Skip to content

Commit 3a48c2f

Browse files
add a mock count attribute to test/ouput_collection elements
count is now required for planemo lint to pass
1 parent d5f571b commit 3a48c2f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ctdconverter/galaxy/converter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,9 +1760,10 @@ def create_tests(parent, inputs=None, outputs=None, test_macros_prefix=None, nam
17601760
node.attrib["value"] = "outfile.txt"
17611761
if node.tag == "collection":
17621762
node.tag = "output_collection"
1763+
node.attrib["count"] = "0" # add a mock count element
17631764
if node.attrib.get("name", None) == "stdout":
17641765
node.attrib["lines_diff"] = "2"
1765-
for a in set(node.attrib) - {"name", "value", "ftype", "lines_diff"}:
1766+
for a in set(node.attrib) - {"name", "value", "ftype", "lines_diff", "count"}:
17661767
del node.attrib[a]
17671768
strip_elements(outputs, "delete_node", "discover_datasets", "filter", "change_format")
17681769

tests/test-data/ofile-mult-typeparam.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ ${' '.join(["&& mv -n 'test_section_sect_mandatory_mandatoryinput/%(bn)s/%(id)s.
9393
<conditional name="adv_opts_cond">
9494
<param name="adv_opts_selector" value="advanced"/>
9595
</conditional>
96-
<output_collection name="mandatory_mandatoryinput"/>
97-
<output_collection name="test_section_sect_mandatory_mandatoryinput"/>
96+
<output_collection name="mandatory_mandatoryinput" count="0"/>
97+
<output_collection name="test_section_sect_mandatory_mandatoryinput" count="0"/>
9898
</test>
9999
</tests>
100100
<help><![CDATA[Multiple Output File parameter tests.

tests/test-data/ofile-mult.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ ${' '.join(["&& mv -n 'mandatory_mandatoryinput/%(bn)s/%(id)s.%(gext)s' 'mandato
8787
<conditional name="adv_opts_cond">
8888
<param name="adv_opts_selector" value="advanced"/>
8989
</conditional>
90-
<output_collection name="mandatory_mandatoryinput"/>
90+
<output_collection name="mandatory_mandatoryinput" count="0"/>
9191
</test>
9292
</tests>
9393
<help><![CDATA[Multiple Output File parameter tests.

0 commit comments

Comments
 (0)