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
  • Loading branch information
dvora-h committed Feb 2, 2022
1 parent 8499adc commit eaa88ce
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 eaa88ce

Please sign in to comment.