diff --git a/lib/galaxy_test/driver/driver_util.py b/lib/galaxy_test/driver/driver_util.py index 298506b701dc..6fbfcee86d70 100644 --- a/lib/galaxy_test/driver/driver_util.py +++ b/lib/galaxy_test/driver/driver_util.py @@ -69,9 +69,8 @@ log = logging.getLogger("test_driver") -# Global variables to pass database contexts around - only needed for older +# Global variable to pass database contexts around - only needed for older # Tool Shed twill tests that didn't utilize the API for such interactions. -tool_shed_context = None install_context = None diff --git a/lib/tool_shed/test/base/driver.py b/lib/tool_shed/test/base/driver.py index 1af08f1eb642..a4fa67efdfb5 100644 --- a/lib/tool_shed/test/base/driver.py +++ b/lib/tool_shed/test/base/driver.py @@ -38,6 +38,9 @@ """ +# Global variable to pass database contexts around - only needed for older +# Tool Shed twill tests that didn't utilize the API for such interactions. +tool_shed_context = None def build_shed_app(simple_kwargs): diff --git a/lib/tool_shed/test/base/test_db_util.py b/lib/tool_shed/test/base/test_db_util.py index 03b1bbcc7550..f957cfe0ea2c 100644 --- a/lib/tool_shed/test/base/test_db_util.py +++ b/lib/tool_shed/test/base/test_db_util.py @@ -18,7 +18,7 @@ def sa_session(): - from galaxy_test.driver.driver_util import tool_shed_context as sa_session + from .driver import tool_shed_context as sa_session return sa_session