diff --git a/django_q/tests/test_brokers.py b/django_q/tests/test_brokers.py index 9d40b38..c6f7c1c 100644 --- a/django_q/tests/test_brokers.py +++ b/django_q/tests/test_brokers.py @@ -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):