测试视频复刻

This commit is contained in:
Azmat@qq.com
2026-08-31 10:13:56 +08:00
parent 6b6146e595
commit 284748eeff
7 changed files with 193 additions and 245 deletions
+9
View File
@@ -11,3 +11,12 @@ DATABASES = {
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]
CELERY_TASK_ALWAYS_EAGER = True
CELERY_TASK_EAGER_PROPAGATES = True
# 测试必须完全离线:base.py 的 Redis cache 会让 billing 等普通业务逻辑在
# 单测中意外连到实际环境。测试用进程内缓存即可,既不依赖网络,也不会碰线上数据。
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "airshelf-test-cache",
}
}