Commit Graph
6 Commits
Author SHA1 Message Date
mvdbeek 03e46b800a Re-organize tool_util tests 2020-07-24 12:03:02 +02:00
mvdbeek 5e9dd557d5 Add basic unit test for lint_inputs
This could of course be extended much more.
2019-08-04 11:58:39 +02:00
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
Sergey Golitsynskiy 3df3ff0bec Fix package test
The cause of this is related to pulling tool_util out of tools:
https://github.com/galaxyproject/galaxy/pull/8279

The solution here is a temporary hack (add helper module, util.py, to
tests/, then make tests a package).

A better solution will be to separate test/unit/tools into tools/ and
tool_util/ - I intend to take care of it soon.
2019-07-13 20:18:57 -04:00
John Chilton 33fd1b1a8a Refactor output_checker.py into galaxy-tool-util.
Needed for remote job completion.
2019-06-12 14:43:44 -04:00
John Chilton 939e7774a8 Create galaxy-tool-util package.
This is (so far a subset of) the tool utilities from galaxy-lib. galaxy-lib mocked out a fake galaxy.tools to allow these to all exist below the galaxy.tools - but this was a terrible hack - in order for the new packages to be true subsets of Galaxy they need to be refactored into a new package that doesn't depend on models, SA, galaxy.jobs, etc...

[x] galaxy.tools.deps -> galaxy.tool_util.deps
[x] galaxy.tools.loader -> galaxy.tool_util.loader
[x] galaxy.tools.cwl -> galaxy.tool_util.cwl
[x] galaxy.tools.loader -> galaxy.tool_util.loader
[x] galaxy.tools.fetcher -> galaxy.tool_util.fetcher
[x] galaxy.tools.locations -> galaxy.tool_util.locations
[x] galaxy.tools.parser -> galaxy.tool_util.parser
2019-05-16 16:45:25 -04:00