summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_asyncio/test_json.py5
-rw-r--r--tests/test_json.py5
2 files changed, 5 insertions, 5 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
diff --git a/tests/test_json.py b/tests/test_json.py
index 3d9b678..2b75456 100644
--- a/tests/test_json.py
+++ b/tests/test_json.py
@@ -893,7 +893,6 @@ def test_type_dollar(client):
@pytest.mark.redismod
def test_clear_dollar(client):
-
client.json().set(
"doc1",
"$",
@@ -905,10 +904,10 @@ def test_clear_dollar(client):
},
)
# Test multi
- assert client.json().clear("doc1", "$..a") == 4
+ assert client.json().clear("doc1", "$..a") == 3
assert client.json().get("doc1", "$") == [
- {"nested1": {"a": {}}, "a": [], "nested2": {"a": ""}, "nested3": {"a": {}}}
+ {"nested1": {"a": {}}, "a": [], "nested2": {"a": "claro"}, "nested3": {"a": {}}}
]
# Test single