Skip to content
Snippets Groups Projects
Commit 7bdcac62 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

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
No related branches found
No related tags found
1 merge request!311Don't make the test database in memory for beat.cmdline tests
Pipeline #35324 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment