Remove test-specific settings

This commit is contained in:
Martin Pépin 2019-12-24 16:50:54 +01:00
parent 33fc1564bb
commit da4a440c3b
No known key found for this signature in database
GPG key ID: E7520278B1774448
2 changed files with 1 additions and 6 deletions

View file

@ -39,7 +39,6 @@ DBPASSWD = import_secret("DBPASSWD")
BASE_DIR = os.path.dirname( BASE_DIR = os.path.dirname(
os.path.dirname(os.path.dirname(os.path.abspath(__file__))) os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
) )
TESTING = sys.argv[1] == "test"
INSTALLED_APPS = [ INSTALLED_APPS = [

View file

@ -2,16 +2,12 @@ import os
from .common import * # noqa from .common import * # noqa
from .common import TESTING, BASE_DIR from .common import BASE_DIR
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
DEBUG = True DEBUG = True
if TESTING:
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]
DATABASES = { DATABASES = {
"default": { "default": {
"ENGINE": "django.db.backends.sqlite3", "ENGINE": "django.db.backends.sqlite3",