diff options
Diffstat (limited to 'tests/test_json.py')
-rw-r--r-- | tests/test_json.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_json.py b/tests/test_json.py index 0a85998..ed448a0 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -116,6 +116,15 @@ def test_mgetshouldsucceed(client): @pytest.mark.redismod +@skip_ifmodversion_lt("2.6.0", "ReJSON") # todo: update after the release +def test_mset(client): + client.json().mset("1", Path.root_path(), 1, "2", Path.root_path(), 2) + + assert client.json().mget(["1"], Path.root_path()) == [1] + assert client.json().mget(["1", "2"], Path.root_path()) == [1, 2] + + +@pytest.mark.redismod @skip_ifmodversion_lt("99.99.99", "ReJSON") # todo: update after the release def test_clear(client): client.json().set("arr", Path.root_path(), [0, 1, 2, 3, 4]) |