mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
faster tests
This commit is contained in:
@ -696,6 +696,17 @@ if DEBUG:
|
||||
|
||||
if TESTING:
|
||||
CAPTCHA_TEST_MODE = True
|
||||
PASSWORD_HASHERS = [ # not secure, but faster password hasher
|
||||
"django.contrib.auth.hashers.MD5PasswordHasher",
|
||||
]
|
||||
STORAGES = { # store files in memory rather than using the hard drive
|
||||
"default": {
|
||||
"BACKEND": "django.core.files.storage.InMemoryStorage",
|
||||
},
|
||||
"staticfiles": {
|
||||
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
|
||||
},
|
||||
}
|
||||
|
||||
if SENTRY_DSN:
|
||||
# Connection to sentry
|
||||
|
Reference in New Issue
Block a user