Skip to content

Commit

Permalink
Import tool shed url
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed May 29, 2024
1 parent b0ea69e commit 2ea3d34
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/galaxy_test/driver/uses_shed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -36,8 +37,6 @@
<tables>
</tables>"""

TOOLSHED_URL = "https://toolshed.g2.bx.psu.edu/"


class UsesShed(UsesShedApi):
@property
Expand All @@ -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])
Expand Down

0 comments on commit 2ea3d34

Please sign in to comment.