coulomb-social/coulomb_social/settings/test.py

29 lines
665 B
Python
Raw Normal View History

from pathlib import Path
from .base import * # noqa: F403
DEBUG = False
SECRET_KEY = "test-secret-key"
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": ":memory:",
}
}
OIDC_ENABLED = False
USER_ENGINE_BASE_URL = ""
FLEX_AUTH_BASE_URL = ""
# Isolate content plane from developer var/ trees during tests
CONTENT_ROOT = str(Path(BASE_DIR) / "var" / "test-content") # noqa: F405
# Whitenoise manifest not required in tests
STORAGES = {
"staticfiles": {
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
},
}