-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1313 from mvdbeek/autoupdate_fix
Compare versions, not tool ids to find latest tool ids
- Loading branch information
Showing
2 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from planemo.autoupdate import get_newest_tool_id | ||
|
||
|
||
def test_get_newest_tool_id(): | ||
tool_ids = [ | ||
"toolshed.g2.bx.psu.edu/repos/iuc/rgrnastar/rna_star/2.7.8a+galaxy0", | ||
"toolshed.g2.bx.psu.edu/repos/iuc/rgrnastar/rna_star/2.7.8a", | ||
] | ||
assert get_newest_tool_id(tool_ids) == tool_ids[0] |