From b0a470812b7d92964a0d48cd1e1c5bfc6aeed8f7 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 2 Feb 2022 12:48:11 +0200 Subject: [PATCH] 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) --- tests/test_json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_json.py b/tests/test_json.py index 6980e67398..21bdc08b5e 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