Commit fe272566 authored by Samuel GAIST's avatar Samuel GAIST

[settings][test] Don't make the database in memory for beat.cmdline tests

For testing purpose the database has been moved to
/dev/shm and the sqlite3 file is used to optimize
the testing speed of beat/beat.cmdline.
parent e3c9a49c
Pipeline #35322 passed with stage
in 13 minutes and 22 seconds
......@@ -28,7 +28,6 @@
# Django settings for tests
import os
import platform
import sys
from .settings import * # noqa
......@@ -58,10 +57,6 @@ DATABASES["default"]["ATOMIC_REQUESTS"] = True # noqa
# Timeout used in test when waiting for an update
DB_REFRESH_TIMEOUT = int(os.environ.get("DB_REFRESH_TIMEOUT", 10))
if "beat.cmdline" in sys.argv:
# make it in-memory for cmdline app tests
DATABASES["default"]["NAME"] = ":memory:" # noqa
LOGGING["handlers"]["console"]["level"] = "DEBUG" # noqa
LOGGING["loggers"]["beat.core"]["handlers"] = ["discard"] # noqa
LOGGING["loggers"]["beat.web"]["handlers"] = ["discard"] # noqa
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment