mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-15 21:47:53 +08:00
add test for Redis URL
This commit is contained in:
@@ -44,6 +44,10 @@ def test_redis(monkeypatch):
|
||||
broker = get_broker()
|
||||
with pytest.raises(Exception):
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user