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

Method test_zrevrank

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

Source from the content-addressed store, hash-verified

3909 )
3910
3911 async def test_zrevrank(self, r: redis.Redis):
3912 await r.zadd("a", {"a1": 1, "a2": 2, "a3": 3, "a4": 4, "a5": 5})
3913 assert await r.zrevrank("a", "a1") == 4
3914 assert await r.zrevrank("a", "a2") == 3
3915 assert await r.zrevrank("a", "a6") is None
3916
3917 @skip_if_server_version_lt("7.2.0")
3918 async def test_zrevrank_withscore(self, r: redis.Redis):

Callers

nothing calls this directly

Calls 2

zaddMethod · 0.80
zrevrankMethod · 0.80

Tested by

no test coverage detected