fix: use in-memory Celery broker in tests (no Redis needed)

Configure CELERY_BROKER_URL=memory:// and CELERY_RESULT_BACKEND=
cache+memory:// so tests don't try to connect to Redis. Fixes CI
failures where Redis is unavailable.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ashwin31 2026-02-17 20:47:36 +05:30
parent 0702f20366
commit 64ec34debf

View file

@ -13,3 +13,7 @@ DATABASES = {
"NAME": ":memory:",
}
}
# Disable Celery broker/result backend in tests (no Redis needed)
CELERY_BROKER_URL = "memory://"
CELERY_RESULT_BACKEND = "cache+memory://"