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

Function test_numincrby

tests/test_asyncio/test_json.py:267–274  ·  view source on GitHub ↗
(decoded_r)

Source from the content-addressed store, hash-verified

265
266@pytest.mark.redismod
267async def test_numincrby(decoded_r):
268 await decoded_r.json().set("num", Path.root_path(), 1)
269 res = await decoded_r.json().numincrby("num", Path.root_path(), 1)
270 assert_resp_response(decoded_r, res, 2, [2])
271 res = await decoded_r.json().numincrby("num", Path.root_path(), 0.5)
272 assert_resp_response(decoded_r, res, 2.5, [2.5])
273 res = await decoded_r.json().numincrby("num", Path.root_path(), -1.25)
274 assert_resp_response(decoded_r, res, 1.25, [1.25])
275
276
277@pytest.mark.redismod

Callers

nothing calls this directly

Calls 5

assert_resp_responseFunction · 0.90
root_pathMethod · 0.80
numincrbyMethod · 0.80
setMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected