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
This commit is contained in:
mprahl
2020-01-07 09:38:49 -05:00
parent 59980b1219
commit f1f92a4d25

View File

@@ -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"