3
3
4
4
from .test_utils import (
5
5
CliTestCase ,
6
+ mark ,
6
7
PROJECT_TEMPLATES_DIR ,
7
8
skip_if_environ ,
9
+ target_galaxy_branch ,
8
10
TEST_REPOS_DIR ,
9
11
TEST_TOOLS_DIR ,
10
12
)
@@ -14,13 +16,14 @@ class CmdTestCondaTestCase(CliTestCase):
14
16
"""Integration tests for the ``test`` command."""
15
17
16
18
@skip_if_environ ("PLANEMO_SKIP_GALAXY_TESTS" )
19
+ @mark .tests_galaxy_branch
17
20
def test_conda_dependencies_by_default (self ):
18
21
with self ._isolate ():
19
22
bwa_test = os .path .join (PROJECT_TEMPLATES_DIR , "conda_testing" , "bwa.xml" )
20
23
test_command = [
21
24
"--verbose" ,
22
25
"test" ,
23
- "--galaxy_branch" , "dev" ,
26
+ "--galaxy_branch" , target_galaxy_branch () ,
24
27
bwa_test ,
25
28
]
26
29
self ._check_exit_code (test_command , exit_code = 0 )
@@ -41,6 +44,7 @@ def test_conda_dependencies_explicit_resolution(self):
41
44
self ._check_exit_code (test_command , exit_code = 0 )
42
45
43
46
@skip_if_environ ("PLANEMO_SKIP_GALAXY_TESTS" )
47
+ @mark .tests_galaxy_branch
44
48
def test_conda_dependencies_version (self ):
45
49
"""Test tool with wrong version and ensure it fails."""
46
50
with self ._isolate ():
@@ -49,6 +53,7 @@ def test_conda_dependencies_version(self):
49
53
test_command = [
50
54
"--verbose" ,
51
55
"test" ,
56
+ "--galaxy_branch" , target_galaxy_branch (),
52
57
"--conda_dependency_resolution" ,
53
58
"--conda_auto_install" ,
54
59
"--conda_auto_init" ,
@@ -57,6 +62,7 @@ def test_conda_dependencies_version(self):
57
62
self ._check_exit_code (test_command , exit_code = 1 )
58
63
59
64
@skip_if_environ ("PLANEMO_SKIP_GALAXY_TESTS" )
65
+ @mark .tests_galaxy_branch
60
66
def test_local_conda_dependencies_version (self ):
61
67
"""Test a tool that requires local package builds."""
62
68
with self ._isolate ():
@@ -75,7 +81,7 @@ def test_local_conda_dependencies_version(self):
75
81
self ._check_exit_code (conda_install_command )
76
82
test_command = [
77
83
"test" ,
78
- "--galaxy_branch" , "release_17.09" ,
84
+ "--galaxy_branch" , target_galaxy_branch () ,
79
85
fleeqtk_tool ,
80
86
]
81
87
self ._check_exit_code (test_command )
0 commit comments