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

Function test_json_setbinarykey

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

Source from the content-addressed store, hash-verified

22
23@pytest.mark.redismod
24def test_json_setbinarykey(client):
25 d = {"hello": "world", b"some": "value"}
26 with pytest.raises(TypeError):
27 client.json().set("somekey", Path.root_path(), d)
28 assert client.json().set("somekey", Path.root_path(), d, decode_keys=True)
29
30
31@pytest.mark.redismod

Callers

nothing calls this directly

Calls 3

root_pathMethod · 0.80
setMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected