| 380 | |
| 381 | @pytest.mark.redismod |
| 382 | async 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 |