From da4a440c3b486a720c3b205bb8546d16dc6d679a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Tue, 24 Dec 2019 16:50:54 +0100 Subject: [PATCH] Remove test-specific settings --- WikiENS/settings/common.py | 1 - WikiENS/settings/local.py | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/WikiENS/settings/common.py b/WikiENS/settings/common.py index def224b..3cbf8d5 100644 --- a/WikiENS/settings/common.py +++ b/WikiENS/settings/common.py @@ -39,7 +39,6 @@ DBPASSWD = import_secret("DBPASSWD") BASE_DIR = os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__))) ) -TESTING = sys.argv[1] == "test" INSTALLED_APPS = [ diff --git a/WikiENS/settings/local.py b/WikiENS/settings/local.py index 81b7e8f..b35822d 100644 --- a/WikiENS/settings/local.py +++ b/WikiENS/settings/local.py @@ -2,16 +2,12 @@ import os from .common import * # noqa -from .common import TESTING, BASE_DIR +from .common import BASE_DIR EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" DEBUG = True -if TESTING: - PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"] - - DATABASES = { "default": { "ENGINE": "django.db.backends.sqlite3",