mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
This replaces a previous (now closed) PR: https://github.com/galaxyproject/galaxy/pull/8279 A few changes: - tests for code in galaxy/tool_util moved under test/unit/tool_util - common parts (used in both tools and tool_util) factored out into unittest_utils/sample_data.py - symlink to sample_data.py in test/unit/tool_util/ is needed to make the tool_util package tests run. This is not an ideal solution, but it avoids duplication of the sample data used by tests in tools/ and tool_util/.
18 lines
411 B
Python
18 lines
411 B
Python
from string import Template
|
|
|
|
SIMPLE_TOOL_WITH_MACRO = """<tool id="tool_with_macro" name="macro_annotation" version="@WRAPPER_VERSION@">
|
|
<expand macro="inputs" />
|
|
<macros>
|
|
<import>external.xml</import>
|
|
</macros>
|
|
</tool>"""
|
|
|
|
SIMPLE_MACRO = Template("""
|
|
<macros>
|
|
<token name="@WRAPPER_VERSION@">$tool_version</token>
|
|
<macro name="inputs">
|
|
<inputs/>
|
|
</macro>
|
|
</macros>
|
|
""")
|