[tests] Speed up tests

This commit is contained in:
2026-03-02 09:19:36 -05:00
parent 9848e5874d
commit d1844c01a0
5 changed files with 180 additions and 18 deletions

View File

@ -1 +1,21 @@
from vrobbler.settings import *
TESTING = True
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "/tmp/testdb.sqlite3",
}
}
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "unique-snowflake",
}
}
PASSWORD_HASHERS = [
"django.contrib.auth.hashers.MD5PasswordHasher",
]