diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-02-02 12:48:11 +0200 |
---|---|---|
committer | Guy Korland <gkorland@gmail.com> | 2022-02-08 08:17:27 +0200 |
commit | b0a470812b7d92964a0d48cd1e1c5bfc6aeed8f7 (patch) | |
tree | 03dcce1bcc0bc50bdfc6d041edff7a2239a5265b | |
parent | bbf7f458216d972c5d1e6f98508be0c820b9298c (diff) | |
download | redis-py-b0a470812b7d92964a0d48cd1e1c5bfc6aeed8f7.tar.gz |
Change json.clear test multi to be up to date with redisjson (#1922)
* fix json clear test
* fix json clear test
(cherry picked from commit eaa88ce67f708d2dc1d5235526d03f41fc4cae7c)
-rw-r--r-- | tests/test_json.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_json.py b/tests/test_json.py index 6980e67..21bdc08 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -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 |