MCPcopy
hub / github.com/Bogdanp/dramatiq / check_redis

Function check_redis

tests/conftest.py:39–43  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

37
38
39def check_redis(client):
40 try:
41 client.ping()
42 except redis.ConnectionError as e:
43 raise e if CI else pytest.skip("No connection to Redis server.") from None
44
45
46def check_memcached(client):

Callers 3

redis_brokerFunction · 0.85
redis_result_backendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected