15 lines
639 B
Python
15 lines
639 B
Python
"""Settings for the test suite: a throw-away secret and an in-memory database."""
|
|||
|
|
|
||
|
|
import os
|
||
|
|
|
||
|
|
os.environ.setdefault("DJANGO_SECRET_KEY", "test-secret-" + "x" * 60)
|
||
|
|
|
||
|
|
from .settings import * # noqa: E402,F401,F403
|
||
|
|
|
||
|
|
# A fast hasher: the tests create many users, and Argon2 is slow on purpose.
|
||
|
|
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]
|
||
|
|
STORAGES = {
|
||
|
|
"default": {"BACKEND": "django.core.files.storage.FileSystemStorage"},
|
||
|
|
"staticfiles": {"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"},
|
||
|
|
}
|
||
|
|
MIDDLEWARE = [m for m in MIDDLEWARE if "whitenoise" not in m] # no collected static files in tests
|