Initialize clean CSR inventory repository
This commit is contained in:
12
csr_inventory/test_settings.py
Normal file
12
csr_inventory/test_settings.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""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"},
|
||||
}
|
||||
Reference in New Issue
Block a user