summaryrefslogtreecommitdiff
path: root/tests/test_asyncio/test_json.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_asyncio/test_json.py')
-rw-r--r--tests/test_asyncio/test_json.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_asyncio/test_json.py b/tests/test_asyncio/test_json.py
index 6bd9581..c203c6d 100644
--- a/tests/test_asyncio/test_json.py
+++ b/tests/test_asyncio/test_json.py
@@ -899,11 +899,12 @@ async def test_clear_dollar(modclient: redis.Redis):
"nested3": {"a": {"baz": 50}},
},
)
+
# Test multi
- assert await modclient.json().clear("doc1", "$..a") == 4
+ assert await modclient.json().clear("doc1", "$..a") == 3
assert await modclient.json().get("doc1", "$") == [
- {"nested1": {"a": {}}, "a": [], "nested2": {"a": ""}, "nested3": {"a": {}}}
+ {"nested1": {"a": {}}, "a": [], "nested2": {"a": "claro"}, "nested3": {"a": {}}}
]
# Test single