mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-20 03:18:07 +08:00
11 lines
229 B
Python
11 lines
229 B
Python
import pytest
|
|
|
|
from django_q import conf
|
|
|
|
|
|
def test_django_redis():
|
|
conf.Conf.DJANGO_REDIS = None
|
|
assert conf.redis_client.ping() is True
|
|
conf.Conf.DJANGO_REDIS = 'default'
|
|
assert conf.redis_client.ping() is True
|