mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Respect section=False parameter in BaseToolBoxTestCase._setup_two_versions_in_config()
Broken in commit fd1c34b4c9
This commit is contained in:
@@ -112,21 +112,17 @@ class BaseToolBoxTestCase(unittest.TestCase, UsesApp, UsesTools):
|
||||
def _setup_two_versions_in_config(self, section=False):
|
||||
if section:
|
||||
template = """<toolbox tool_path="%s">
|
||||
<section id="tid" name="TID" version="">
|
||||
%s
|
||||
</section>
|
||||
<section id="tid" name="TID" version="">
|
||||
%s
|
||||
</section>
|
||||
<section id="tid" name="TID" version="">
|
||||
%s
|
||||
</section>
|
||||
<section id="tid" name="TID" version="">
|
||||
%s
|
||||
</section>
|
||||
</toolbox>"""
|
||||
else:
|
||||
template = """<toolbox tool_path="%s">
|
||||
<section id="tid" name="TID" version="">
|
||||
%s
|
||||
</section>
|
||||
<section id="tid" name="TID" version="">
|
||||
%s
|
||||
</section>
|
||||
</toolbox>"""
|
||||
self._add_config(template % (self.test_directory, CONFIG_TEST_TOOL_VERSION_1, CONFIG_TEST_TOOL_VERSION_2))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user