33
44from .test_utils import (
55 CliTestCase ,
6+ mark ,
67 PROJECT_TEMPLATES_DIR ,
78 skip_if_environ ,
9+ target_galaxy_branch ,
810 TEST_REPOS_DIR ,
911 TEST_TOOLS_DIR ,
1012)
@@ -14,13 +16,14 @@ class CmdTestCondaTestCase(CliTestCase):
1416 """Integration tests for the ``test`` command."""
1517
1618 @skip_if_environ ("PLANEMO_SKIP_GALAXY_TESTS" )
19+ @mark .tests_galaxy_branch
1720 def test_conda_dependencies_by_default (self ):
1821 with self ._isolate ():
1922 bwa_test = os .path .join (PROJECT_TEMPLATES_DIR , "conda_testing" , "bwa.xml" )
2023 test_command = [
2124 "--verbose" ,
2225 "test" ,
23- "--galaxy_branch" , "dev" ,
26+ "--galaxy_branch" , target_galaxy_branch () ,
2427 bwa_test ,
2528 ]
2629 self ._check_exit_code (test_command , exit_code = 0 )
@@ -41,6 +44,7 @@ def test_conda_dependencies_explicit_resolution(self):
4144 self ._check_exit_code (test_command , exit_code = 0 )
4245
4346 @skip_if_environ ("PLANEMO_SKIP_GALAXY_TESTS" )
47+ @mark .tests_galaxy_branch
4448 def test_conda_dependencies_version (self ):
4549 """Test tool with wrong version and ensure it fails."""
4650 with self ._isolate ():
@@ -49,6 +53,7 @@ def test_conda_dependencies_version(self):
4953 test_command = [
5054 "--verbose" ,
5155 "test" ,
56+ "--galaxy_branch" , target_galaxy_branch (),
5257 "--conda_dependency_resolution" ,
5358 "--conda_auto_install" ,
5459 "--conda_auto_init" ,
@@ -57,6 +62,7 @@ def test_conda_dependencies_version(self):
5762 self ._check_exit_code (test_command , exit_code = 1 )
5863
5964 @skip_if_environ ("PLANEMO_SKIP_GALAXY_TESTS" )
65+ @mark .tests_galaxy_branch
6066 def test_local_conda_dependencies_version (self ):
6167 """Test a tool that requires local package builds."""
6268 with self ._isolate ():
@@ -75,7 +81,7 @@ def test_local_conda_dependencies_version(self):
7581 self ._check_exit_code (conda_install_command )
7682 test_command = [
7783 "test" ,
78- "--galaxy_branch" , "release_17.09" ,
84+ "--galaxy_branch" , target_galaxy_branch () ,
7985 fleeqtk_tool ,
8086 ]
8187 self ._check_exit_code (test_command )
0 commit comments