From 7cccf3a8b5a377bde413d809494ff5abfb8c8678 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 7 Dec 2020 15:04:38 -0500 Subject: [PATCH] Make import global :( --- test/unit/data/test_galaxy_mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/data/test_galaxy_mapping.py b/test/unit/data/test_galaxy_mapping.py index 0d994147c019..2b0b5ecc301d 100644 --- a/test/unit/data/test_galaxy_mapping.py +++ b/test/unit/data/test_galaxy_mapping.py @@ -5,6 +5,7 @@ import pytest from sqlalchemy import inspect +from sqlalchemy_utils import create_database import galaxy.datatypes.registry import galaxy.model @@ -773,7 +774,6 @@ def _db_uri(cls): base = os.environ.get("GALAXY_TEST_UNIT_MAPPING_URI_POSTGRES_BASE") dbname = "gxtest" + str(uuid.uuid4()) postgres_url = base + dbname - from sqlalchemy_utils import create_database create_database(postgres_url) return postgres_url