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

Function test_topk_incrby

tests/test_bloom.py:413–423  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

411
412@pytest.mark.redismod
413def test_topk_incrby(client):
414 client.flushdb()
415 assert client.topk().reserve("topk", 3, 10, 3, 1)
416 assert [None, None, None] == client.topk().incrby(
417 "topk", ["bar", "baz", "42"], [3, 6, 2]
418 )
419 assert [None, "bar"] == client.topk().incrby("topk", ["42", "xyzzy"], [8, 4])
420 with pytest.deprecated_call():
421 assert [3, 6, 10, 4, 0] == client.topk().count(
422 "topk", "bar", "baz", "42", "xyzzy", 4
423 )
424
425
426@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