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

Function test_json_get_jset

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

Source from the content-addressed store, hash-verified

46
47@pytest.mark.redismod
48def test_json_get_jset(client):
49 assert client.json().set("foo", Path.root_path(), "bar")
50 assert client.json().get("foo") == "bar"
51 assert client.json().get("baz") is None
52 assert 1 == client.json().delete("foo")
53 assert client.exists("foo") == 0
54
55
56@pytest.mark.redismod

Callers

nothing calls this directly

Calls 6

root_pathMethod · 0.80
setMethod · 0.45
jsonMethod · 0.45
getMethod · 0.45
deleteMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected