From 2ea3d342cc6e855eba2292a8ad77c63d11753571 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 29 May 2024 15:29:39 +0200 Subject: [PATCH] Import tool shed url --- lib/galaxy_test/driver/uses_shed.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/galaxy_test/driver/uses_shed.py b/lib/galaxy_test/driver/uses_shed.py index e31237d5f166..f563d516d5a6 100644 --- a/lib/galaxy_test/driver/uses_shed.py +++ b/lib/galaxy_test/driver/uses_shed.py @@ -8,6 +8,7 @@ from galaxy.app import UniverseApplication from galaxy.model.base import transaction +from galaxy.util.tool_shed.tool_shed_registry import DEFAULT_TOOL_SHED_URL from galaxy.util.unittest_utils import is_site_up from galaxy_test.base.populators import DEFAULT_TIMEOUT from galaxy_test.base.uses_shed_api import UsesShedApi @@ -36,8 +37,6 @@ """ -TOOLSHED_URL = "https://toolshed.g2.bx.psu.edu/" - class UsesShed(UsesShedApi): @property @@ -51,8 +50,8 @@ def _app(self) -> UniverseApplication: ... @classmethod def configure_shed(cls, config): - if not is_site_up(TOOLSHED_URL): - raise SkipTest(f"Test depends on [{TOOLSHED_URL}] being up and it appears to be down.") + if not is_site_up(DEFAULT_TOOL_SHED_URL): + raise SkipTest(f"Test depends on [{DEFAULT_TOOL_SHED_URL}] being up and it appears to be down.") cls.shed_tools_dir = tempfile.mkdtemp() cls.shed_tool_data_dir = tempfile.mkdtemp() cls._test_driver.temp_directories.extend([cls.shed_tool_data_dir, cls.shed_tools_dir])