mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 16:38:11 +08:00
add test for Redis URL
This commit is contained in:
@@ -44,6 +44,10 @@ def test_redis(monkeypatch):
|
|||||||
broker = get_broker()
|
broker = get_broker()
|
||||||
with pytest.raises(Exception):
|
with pytest.raises(Exception):
|
||||||
broker.ping()
|
broker.ping()
|
||||||
|
monkeypatch.setattr(Conf, 'REDIS', 'redis://127.0.0.1:7799')
|
||||||
|
broker = get_broker()
|
||||||
|
with pytest.raises(Exception):
|
||||||
|
broker.ping()
|
||||||
|
|
||||||
|
|
||||||
def test_custom(monkeypatch):
|
def test_custom(monkeypatch):
|
||||||
|
|||||||
Reference in New Issue
Block a user