1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
From: Salvo 'LtWorf' Tomaselli <ltworf@debian.org>
Date: Thu, 23 Oct 2025 13:08:13 +0100
Subject: Fix test with new redis-py
In the new version the initialization changed so the old class no
longer works.
An alias is provided that is bound to Hiredis if it exists.
Thanks to Colin Watson for the investigation
Forwarded: https://github.com/django-q2/django-q2/pull/282
Last-Update: 2025-04-29
---
django_q/tests/settings.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/django_q/tests/settings.py b/django_q/tests/settings.py
index 4191592..5d2f430 100644
--- a/django_q/tests/settings.py
+++ b/django_q/tests/settings.py
@@ -116,7 +116,7 @@ CACHES = {
"LOCATION": f"redis://{REDIS_HOST}:6379/0",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
- "PARSER_CLASS": "redis.connection.HiredisParser",
+ "PARSER_CLASS": "redis.connection.DefaultParser",
},
}
}
|