From 91cabc5d290b6e9f6c4ceff950523b4bece68bbf Mon Sep 17 00:00:00 2001 From: mprahl Date: Jan 16 2020 19:39:46 +0000 Subject: 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 --- diff --git a/module_build_service/common/config.py b/module_build_service/common/config.py index a62ca98..2e03aab 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"