Commit 7bdcac62 authored by Samuel GAIST's avatar Samuel GAIST

Merge branch 'test_configuration_cleanup' into 'master'

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

See merge request !311
parents e3c9a49c fe272566
Pipeline #35324 passed with stages
in 14 minutes and 48 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