Skip to content

Commit

Permalink
Change json.clear test multi to be up to date with redisjson (#1922)
Browse files Browse the repository at this point in the history
* fix json clear test

* fix json clear test

(cherry picked from commit eaa88ce)
  • Loading branch information
dvora-h authored and gkorland committed Feb 8, 2022
1 parent bbf7f45 commit b0a4708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_json.py
Expand Up @@ -905,10 +905,10 @@ def test_clear_dollar(client):
},
)
# Test multi
assert client.json().clear("doc1", "$..a") == 3
assert client.json().clear("doc1", "$..a") == 4

assert client.json().get("doc1", "$") == [
{"nested1": {"a": {}}, "a": [], "nested2": {"a": "claro"}, "nested3": {"a": {}}}
{"nested1": {"a": {}}, "a": [], "nested2": {"a": ""}, "nested3": {"a": {}}}
]

# Test single
Expand Down

0 comments on commit b0a4708

Please sign in to comment.