MCPcopy
hub / github.com/redis/redis-py / test_topk_incrby

Function test_topk_incrby

tests/test_asyncio/test_bloom.py:382–393  ·  view source on GitHub ↗
(decoded_r: redis.Redis)

Source from the content-addressed store, hash-verified

380
381@pytest.mark.redismod
382async def test_topk_incrby(decoded_r: redis.Redis):
383 await decoded_r.flushdb()
384 assert await decoded_r.topk().reserve("topk", 3, 10, 3, 1)
385 assert [None, None, None] == await decoded_r.topk().incrby(
386 "topk", ["bar", "baz", "42"], [3, 6, 2]
387 )
388 res = await decoded_r.topk().incrby("topk", ["42", "xyzzy"], [8, 4])
389 assert [None, "bar"] == res
390 with pytest.deprecated_call():
391 assert [3, 6, 10, 4, 0] == await decoded_r.topk().count(
392 "topk", "bar", "baz", "42", "xyzzy", 4
393 )
394
395
396@pytest.mark.experimental

Callers

nothing calls this directly

Calls 5

flushdbMethod · 0.80
reserveMethod · 0.80
topkMethod · 0.45
incrbyMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected