Skip to content

Commit cace8fd

Browse files
authored
Merge branch 'master' into CF.MEXISTS
2 parents 8319ed2 + 8a1feb3 commit cace8fd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/test_asyncio/test_json.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,11 +899,12 @@ async def test_clear_dollar(modclient: redis.Redis):
899899
"nested3": {"a": {"baz": 50}},
900900
},
901901
)
902+
902903
# Test multi
903-
assert await modclient.json().clear("doc1", "$..a") == 4
904+
assert await modclient.json().clear("doc1", "$..a") == 3
904905

905906
assert await modclient.json().get("doc1", "$") == [
906-
{"nested1": {"a": {}}, "a": [], "nested2": {"a": ""}, "nested3": {"a": {}}}
907+
{"nested1": {"a": {}}, "a": [], "nested2": {"a": "claro"}, "nested3": {"a": {}}}
907908
]
908909

909910
# Test single

tests/test_json.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,6 @@ def test_type_dollar(client):
893893

894894
@pytest.mark.redismod
895895
def test_clear_dollar(client):
896-
897896
client.json().set(
898897
"doc1",
899898
"$",
@@ -905,10 +904,10 @@ def test_clear_dollar(client):
905904
},
906905
)
907906
# Test multi
908-
assert client.json().clear("doc1", "$..a") == 4
907+
assert client.json().clear("doc1", "$..a") == 3
909908

910909
assert client.json().get("doc1", "$") == [
911-
{"nested1": {"a": {}}, "a": [], "nested2": {"a": ""}, "nested3": {"a": {}}}
910+
{"nested1": {"a": {}}, "a": [], "nested2": {"a": "claro"}, "nested3": {"a": {}}}
912911
]
913912

914913
# Test single

0 commit comments

Comments
 (0)