mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-05-11 18:37:25 +08:00
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:
@@ -41,8 +41,7 @@ class BaseConfiguration(object):
|
|||||||
|
|
||||||
class TestConfiguration(BaseConfiguration):
|
class TestConfiguration(BaseConfiguration):
|
||||||
LOG_LEVEL = "debug"
|
LOG_LEVEL = "debug"
|
||||||
SQLALCHEMY_DATABASE_URI = os.environ.get(
|
SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URI", "sqlite:///:memory:")
|
||||||
"DATABASE_URI", "sqlite:///{0}".format(os.path.join(os.getcwd(), "mbstest.db")))
|
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
MESSAGING = "in_memory"
|
MESSAGING = "in_memory"
|
||||||
PDC_URL = "https://pdc.fedoraproject.org/rest_api/v1"
|
PDC_URL = "https://pdc.fedoraproject.org/rest_api/v1"
|
||||||
|
|||||||
Reference in New Issue
Block a user