Files
Inventory/csr_inventory/test_settings.py
2026-09-29 08:43:05 +02:00

13 lines
475 B
Python

"""Explicit SQLite fallback for unit tests when PostgreSQL is unavailable.
Production and the default test command always use PostgreSQL.
"""
from .settings import * # noqa: F403
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}}
SECURE_SSL_REDIRECT = False
STORAGES = {
"default": {"BACKEND": "django.core.files.storage.FileSystemStorage"},
"staticfiles": {"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"},
}