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

Function test_arrappend

tests/test_asyncio/test_json.py:319–323  ·  view source on GitHub ↗
(decoded_r: redis.Redis)

Source from the content-addressed store, hash-verified

317
318@pytest.mark.redismod
319async def test_arrappend(decoded_r: redis.Redis):
320 await decoded_r.json().set("arr", Path.root_path(), [1])
321 assert 2 == await decoded_r.json().arrappend("arr", Path.root_path(), 2)
322 assert 4 == await decoded_r.json().arrappend("arr", Path.root_path(), 3, 4)
323 assert 7 == await decoded_r.json().arrappend("arr", Path.root_path(), *[5, 6, 7])
324
325
326@pytest.mark.redismod

Callers

nothing calls this directly

Calls 4

root_pathMethod · 0.80
arrappendMethod · 0.80
setMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected