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

Method test_zadd_xx

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

Source from the content-addressed store, hash-verified

3465 )
3466
3467 async def test_zadd_xx(self, r: redis.Redis):
3468 assert await r.zadd("a", {"a1": 1}) == 1
3469 assert await r.zadd("a", {"a1": 99, "a2": 2}, xx=True) == 0
3470 response = await r.zrange("a", 0, -1, withscores=True)
3471 assert_resp_response(r, response, [(b"a1", 99.0)], [[b"a1", 99.0]])
3472
3473 async def test_zadd_ch(self, r: redis.Redis):
3474 assert await r.zadd("a", {"a1": 1}) == 1

Callers

nothing calls this directly

Calls 3

assert_resp_responseFunction · 0.90
zaddMethod · 0.80
zrangeMethod · 0.80

Tested by

no test coverage detected