File: 0004-Fix-BROKER_CLASS-monkeypatch-in-test_brokers.patch

package info (click to toggle)
django-q 1.3.9-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,188 kB
  • sloc: python: 4,802; makefile: 166; sh: 9
file content (22 lines) | stat: -rw-r--r-- 827 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?q?Pierre-Elliott_B=C3=A9cue?= <peb@debian.org>
Date: Sat, 22 Jan 2022 00:18:01 +0100
Subject: Fix BROKER_CLASS monkeypatch in test_brokers

Forwarded: https://github.com/Koed00/django-q/issues/644
---
 django_q/tests/test_brokers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django_q/tests/test_brokers.py b/django_q/tests/test_brokers.py
index 9abb43b..820ae67 100644
--- a/django_q/tests/test_brokers.py
+++ b/django_q/tests/test_brokers.py
@@ -51,7 +51,7 @@ def test_redis(monkeypatch):
 
 
 def test_custom(monkeypatch):
-    monkeypatch.setattr(Conf, "BROKER_CLASS", "brokers.redis_broker.Redis")
+    monkeypatch.setattr(Conf, "BROKER_CLASS", "django_q.brokers.redis_broker.Redis")
     broker = get_broker()
     assert broker.ping() is True
     assert broker.info() is not None