(client)
| 46 | |
| 47 | @pytest.mark.redismod |
| 48 | def 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 |