From 99b6d05358a96d8767e1d6846b320ecbd7cda07a 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 --- 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