Skip to content

Commit eaa88ce

Browse files
authored
Change json.clear test multi to be up to date with redisjson (#1922)
* fix json clear test * fix json clear test
1 parent 8499adc commit eaa88ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_json.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,10 +905,10 @@ def test_clear_dollar(client):
905905
},
906906
)
907907
# Test multi
908-
assert client.json().clear("doc1", "$..a") == 3
908+
assert client.json().clear("doc1", "$..a") == 4
909909

910910
assert client.json().get("doc1", "$") == [
911-
{"nested1": {"a": {}}, "a": [], "nested2": {"a": "claro"}, "nested3": {"a": {}}}
911+
{"nested1": {"a": {}}, "a": [], "nested2": {"a": ""}, "nested3": {"a": {}}}
912912
]
913913

914914
# Test single

0 commit comments

Comments
 (0)