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

Method test_increx_byint

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

Source from the content-addressed store, hash-verified

1711
1712 @skip_if_server_version_lt("8.7.0")
1713 async def test_increx_byint(self, r: redis.Redis):
1714 key = "increx:byint"
1715 assert await r.set(key, 20)
1716 assert await r.increx(key, byint=4) == [24, 4]
1717 assert await r.get(key) == b"24"
1718
1719 @skip_if_server_version_lt("8.7.0")
1720 async def test_increx_byfloat(self, r: redis.Redis):

Callers

nothing calls this directly

Calls 3

increxMethod · 0.80
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected