Implement tests

This commit is contained in:
Keannu Christian Bernasol 2025-09-13 20:05:13 +08:00
parent 7b1d9d2b4c
commit 0baf619ace
19 changed files with 432 additions and 48 deletions

21
src/tests/settings.py Normal file
View file

@ -0,0 +1,21 @@
"""
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 / "test_db.sqlite3", # noqa: F405
}
}
# Use dummy cache
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.dummy.DummyCache",
}
}