summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshacharPash <shachar.pashchur@redis.com>2023-05-15 18:12:20 +0300
committershacharPash <shachar.pashchur@redis.com>2023-05-15 18:12:20 +0300
commit980f86f9e5608d275d99e13d7ab93f9886a75ecd (patch)
tree38468f08495b5ea818d467a07fa5b8949d789a37
parent2ce2f93a32ab932db3c8c3c4ce59bf513440eadd (diff)
downloadredis-py-980f86f9e5608d275d99e13d7ab93f9886a75ecd.tar.gz
add async test
-rw-r--r--tests/test_asyncio/test_json.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_asyncio/test_json.py b/tests/test_asyncio/test_json.py
index 7334399..fe160fc 100644
--- a/tests/test_asyncio/test_json.py
+++ b/tests/test_asyncio/test_json.py
@@ -110,6 +110,15 @@ async def test_mgetshouldsucceed(modclient: redis.Redis):
@pytest.mark.redismod
+@skip_ifmodversion_lt("2.6.0", "ReJSON") # todo: update after the release
+async def test_mset(modclient: redis.Redis):
+ await modclient.json().mset("1", Path.root_path(), 1, "2", Path.root_path(), 2)
+
+ assert await modclient.json().mget(["1"], Path.root_path()) == [1]
+ assert await modclient.json().mget(["1", "2"], Path.root_path()) == [1, 2]
+
+
+@pytest.mark.redismod
@skip_ifmodversion_lt("99.99.99", "ReJSON") # todo: update after the release
async def test_clear(modclient: redis.Redis):
await modclient.json().set("arr", Path.root_path(), [0, 1, 2, 3, 4])