From fe27256655703f87d9a14835bc54c0a529f3c6ce Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Wed, 13 Nov 2019 16:27:39 +0100 Subject: [PATCH] [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. --- beat/web/settings/test.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/beat/web/settings/test.py b/beat/web/settings/test.py index 777364011..8ac050df7 100755 --- a/beat/web/settings/test.py +++ b/beat/web/settings/test.py @@ -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 -- GitLab