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

Function test_numincrby

tests/test_json.py:247–257  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

245
246@pytest.mark.redismod
247def test_numincrby(client):
248 client.json().set("num", Path.root_path(), 1)
249 assert_resp_response(
250 client, client.json().numincrby("num", Path.root_path(), 1), 2, [2]
251 )
252 assert_resp_response(
253 client, client.json().numincrby("num", Path.root_path(), 0.5), 2.5, [2.5]
254 )
255 assert_resp_response(
256 client, client.json().numincrby("num", Path.root_path(), -1.25), 1.25, [1.25]
257 )
258
259
260@pytest.mark.redismod

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected