From f1f92a4d25e8939dc876afc8b1a37ca83069dc72 Mon Sep 17 00:00:00 2001 From: mprahl Date: Tue, 7 Jan 2020 09:38:49 -0500 Subject: [PATCH] Use an in-memory SQLite database to run the tests This change was lost from the following PR during a rebase: https://pagure.io/fm-orchestrator/pull-request/1511 --- module_build_service/common/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module_build_service/common/config.py b/module_build_service/common/config.py index 943fe9b3..a77c79c8 100644 --- a/module_build_service/common/config.py +++ b/module_build_service/common/config.py @@ -41,8 +41,7 @@ class BaseConfiguration(object): class TestConfiguration(BaseConfiguration): LOG_LEVEL = "debug" - SQLALCHEMY_DATABASE_URI = os.environ.get( - "DATABASE_URI", "sqlite:///{0}".format(os.path.join(os.getcwd(), "mbstest.db"))) + SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URI", "sqlite:///:memory:") DEBUG = True MESSAGING = "in_memory" PDC_URL = "https://pdc.fedoraproject.org/rest_api/v1"