From f57c758128222a6d13bb57aa1bc9ed6ebbde64fb Mon Sep 17 00:00:00 2001 From: dvora-h Date: Wed, 2 Feb 2022 11:14:39 +0200 Subject: [PATCH 1/2] fix json clear test --- tests/test_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_json.py b/tests/test_json.py index 6980e67398..bdf648bbec 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -905,7 +905,7 @@ 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": {}}} From 9c8f046b106a9c1ffd554fe973e5b7e65017aef7 Mon Sep 17 00:00:00 2001 From: dvora-h Date: Wed, 2 Feb 2022 11:28:37 +0200 Subject: [PATCH 2/2] fix json clear test --- tests/test_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_json.py b/tests/test_json.py index bdf648bbec..21bdc08b5e 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -908,7 +908,7 @@ def test_clear_dollar(client): 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