Fix global variable

This commit is contained in:
mvdbeek
2024-05-31 19:56:54 +02:00
parent e2f4043324
commit 0d64837577
3 changed files with 5 additions and 3 deletions
+1 -2
View File
@@ -69,9 +69,8 @@ DEFAULT_LOCALES = "en"
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
+3
View File
@@ -38,6 +38,9 @@ shed_data_manager_conf_xml_template = """<?xml version="1.0"?>
<data_managers>
</data_managers>
"""
# 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):
+1 -1
View File
@@ -18,7 +18,7 @@ log = logging.getLogger("test.tool_shed.test_db_util")
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