"""Test settings: same as production, with defaults for required variables.""" import os os.environ.setdefault("SECRET_KEY", "test-secret-key-not-for-production") os.environ.setdefault("APP_BASE_URL", "https://kochbuch.example.test") from .settings import * # noqa: E402,F403 STORAGES = { **STORAGES, # noqa: F405 "staticfiles": {"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"}, } # Static files are served by the finders in tests; no collectstatic needed. WHITENOISE_USE_FINDERS = True WHITENOISE_AUTOREFRESH = True