Files
John ChiltonandClaude Opus 5.5 206d0d5cdc Framework test coverage for drill_down from_file
Relative from_file drill_downs asserted when parsed without a tool data
path, so they never got a parameter model (Galaxy logged a warning,
tool_util/planemo failed). Treat their options as unknown, like dynamic
options. Drop the vestigial drill_down filter check - the 2008 filter
feature it belonged to is long gone. Add from_file to the XSD, spec
entries for from_file and dynamic_options drill_downs, and fix a stray
character in gx_drill_down_code.xml.

Refs #18642

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 00:22:04 -04:00

39 lines
1.2 KiB
XML

<tool id="gx_drill_down_code" name="gx_drill_down_code" version="1.0.0">
<macros>
<import>macros.xml</import>
</macros>
<code file="gx_drill_down_code.py"/>
<command><![CDATA[
echo "parameter: $parameter" > '$output'
]]></command>
<inputs>
<param name="ref_parameter" type="data" ext="tabular" >
</param>
<param name="parameter" type="drill_down" dynamic_options="collate_table(ref_parameter.dataset.get_file_name())">
</param>
</inputs>
<expand macro="simple_text_output" />
<tests>
<test>
<param name="ref_parameter" value="1.tabular" />
<param name="parameter" value="chr22" />
<output name="output">
<assert_contents>
<has_line line="parameter: chr22" />
</assert_contents>
</output>
</test>
<test>
<param name="ref_parameter" value="1.tabular" />
<param name="parameter" value="2000" />
<output name="output">
<assert_contents>
<has_line line="parameter: 2000" />
</assert_contents>
</output>
</test>
</tests>
<help>
</help>
</tool>