mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-19 10:58:06 +08:00
16 lines
285 B
Python
16 lines
285 B
Python
import pytest
|
|
|
|
from django_q import conf
|
|
|
|
|
|
@pytest.fixture
|
|
def r():
|
|
return conf.redis_client
|
|
|
|
|
|
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
|