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

Method test_hincrby

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

Source from the content-addressed store, hash-verified

4146 assert await r.hgetall("a") == h
4147
4148 async def test_hincrby(self, r: redis.Redis):
4149 assert await r.hincrby("a", "1") == 1
4150 assert await r.hincrby("a", "1", amount=2) == 3
4151 assert await r.hincrby("a", "1", amount=-2) == 1
4152
4153 @skip_if_server_version_lt("2.6.0")
4154 async def test_hincrbyfloat(self, r: redis.Redis):

Callers

nothing calls this directly

Calls 1

hincrbyMethod · 0.80

Tested by

no test coverage detected