From 64ec34debf00a9e9e4e2137d9eb66e6843b47c61 Mon Sep 17 00:00:00 2001 From: ashwin31 Date: Tue, 17 Feb 2026 20:47:36 +0530 Subject: [PATCH] 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 --- backend/crm/test_settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/crm/test_settings.py b/backend/crm/test_settings.py index a83c61ab..8aa26270 100644 --- a/backend/crm/test_settings.py +++ b/backend/crm/test_settings.py @@ -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://"