(client)
| 30 | |
| 31 | @pytest.mark.redismod |
| 32 | def test_json_setgetdeleteforget(client): |
| 33 | assert client.json().set("foo", Path.root_path(), "bar") |
| 34 | assert client.json().get("foo") == "bar" |
| 35 | assert client.json().get("baz") is None |
| 36 | assert client.json().delete("foo") == 1 |
| 37 | assert client.json().forget("foo") == 0 # second delete |
| 38 | assert client.exists("foo") == 0 |
| 39 | |
| 40 | |
| 41 | @pytest.mark.redismod |