File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ def enable_rq_eager_mode():
468468 This function patch the django_rq.get_redis_connection to always return a fake
469469 redis connection using the `fakeredis` library.
470470 """
471- import django_rq . queues
471+ from django_rq import connection_utils
472472 from fakeredis import FakeRedis
473473 from fakeredis import FakeStrictRedis
474474
@@ -478,7 +478,7 @@ def enable_rq_eager_mode():
478478 def get_fake_redis_connection (config , use_strict_redis ):
479479 return FakeStrictRedis () if use_strict_redis else FakeRedis ()
480480
481- django_rq . queues .get_redis_connection = get_fake_redis_connection
481+ connection_utils .get_redis_connection = get_fake_redis_connection
482482
483483
484484DEJACODE_ASYNC = env .bool ("DEJACODE_ASYNC" , default = False )
You can’t perform that action at this time.
0 commit comments