add test for Redis URL

This commit is contained in:
valentinogagliardi
2020-01-12 20:10:06 +01:00
parent 458697c099
commit c12e6184eb

View File

@@ -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):