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

Method test_zincrby

tests/test_asyncio/test_commands.py:3522–3527  ·  view source on GitHub ↗
(self, r: redis.Redis)

Source from the content-addressed store, hash-verified

3520 assert_resp_response(r, response, [(b"a3", 3.0)], [[b"a3", 3.0]])
3521
3522 async def test_zincrby(self, r: redis.Redis):
3523 await r.zadd("a", {"a1": 1, "a2": 2, "a3": 3})
3524 assert await r.zincrby("a", 1, "a2") == 3.0
3525 assert await r.zincrby("a", 5, "a3") == 8.0
3526 assert await r.zscore("a", "a2") == 3.0
3527 assert await r.zscore("a", "a3") == 8.0
3528
3529 @skip_if_server_version_lt("2.8.9")
3530 async def test_zlexcount(self, r: redis.Redis):

Callers

nothing calls this directly

Calls 3

zaddMethod · 0.80
zincrbyMethod · 0.80
zscoreMethod · 0.80

Tested by

no test coverage detected