Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
record
workbench4record
Commits
94082a87
Commit
94082a87
authored
Sep 12, 2018
by
mvdbeek
Browse files
Unit test that fails if we don't return the latest version upon version mismatch
parent
c8552970
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/unit/tools/test_toolbox.py
View file @
94082a87
...
...
@@ -272,6 +272,21 @@ class ToolBoxTestCase(BaseToolBoxTestCase):
assert
test_tool
.
repository_owner
is
None
assert
test_tool
.
installed_changeset_revision
is
None
def
test_tool_shed_request_version
(
self
):
self
.
_init_tool
()
self
.
_setup_two_versions_in_config
(
section
=
False
)
self
.
_setup_two_versions
()
test_tool
=
self
.
toolbox
.
get_tool
(
"test_tool"
,
tool_version
=
"0.1"
)
assert
test_tool
.
version
==
'0.1'
test_tool
=
self
.
toolbox
.
get_tool
(
"test_tool"
,
tool_version
=
"0.2"
)
assert
test_tool
.
version
==
'0.2'
# there is no version 3, return newest version
test_tool
=
self
.
toolbox
.
get_tool
(
"test_tool"
,
tool_version
=
"3"
)
assert
test_tool
.
version
==
'0.2'
def
test_load_file_in_section
(
self
):
self
.
_init_tool_in_section
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment