Files
galaxy/test/unit/unittest_utils/sample_data.py
T
Sergey Golitsynskiy 0e4e1d9249 Restructure unit tests for tool_util package
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/.
2019-07-16 20:15:45 -04:00

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>
""")