MCPcopy Create free account
hub / github.com/python-arq/arq / test_redis_log

Function test_redis_log

tests/test_utils.py:69–83  ·  view source on GitHub ↗
(test_redis_settings: RedisSettings, create_pool)

Source from the content-addressed store, hash-verified

67
68
69async def test_redis_log(test_redis_settings: RedisSettings, create_pool):
70 redis = await create_pool(test_redis_settings)
71 await redis.flushall()
72 await redis.set(b'a', b'1')
73 await redis.set(b'b', b'2')
74
75 log_msgs = []
76
77 def _log(s):
78 log_msgs.append(s)
79
80 await log_redis_info(redis, _log)
81 assert len(log_msgs) == 1
82 assert re.search(r'redis_version=\d\.', log_msgs[0]), log_msgs
83 assert log_msgs[0].endswith(' db_keys=2')
84
85
86def test_truncate():

Callers

nothing calls this directly

Calls 3

log_redis_infoFunction · 0.90
create_poolFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…