Skip to content

Commit

Permalink
Fix global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed May 31, 2024
1 parent e2f4043 commit 0d64837
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/galaxy_test/driver/driver_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
3 changes: 3 additions & 0 deletions lib/tool_shed/test/base/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
<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):
Expand Down
2 changes: 1 addition & 1 deletion lib/tool_shed/test/base/test_db_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0d64837

Please sign in to comment.