(self, r: redis.Redis)
| 3457 | await r.zadd("a", mapping, incr=True) |
| 3458 | |
| 3459 | async def test_zadd_nx(self, r: redis.Redis): |
| 3460 | assert await r.zadd("a", {"a1": 1}) == 1 |
| 3461 | assert await r.zadd("a", {"a1": 99, "a2": 2}, nx=True) == 1 |
| 3462 | response = await r.zrange("a", 0, -1, withscores=True) |
| 3463 | assert_resp_response( |
| 3464 | r, response, [(b"a1", 1.0), (b"a2", 2.0)], [[b"a1", 1.0], [b"a2", 2.0]] |
| 3465 | ) |
| 3466 | |
| 3467 | async def test_zadd_xx(self, r: redis.Redis): |
| 3468 | assert await r.zadd("a", {"a1": 1}) == 1 |
nothing calls this directly
no test coverage detected