DRF_Template/src/tests/settings.py

20 lines
384 B
Python

"""
Minimal Django settings file for tests
"""
from core.settings import * # noqa: F403
# Override database to SQLite
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3", # noqa: F405
}
}
# Use dummy cache
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.dummy.DummyCache",
}
}