summaryrefslogtreecommitdiff
path: root/tests/test_json.py
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-02-02 12:48:11 +0200
committerGitHub <noreply@github.com>2022-02-02 12:48:11 +0200
commiteaa88ce67f708d2dc1d5235526d03f41fc4cae7c (patch)
tree03dcce1bcc0bc50bdfc6d041edff7a2239a5265b /tests/test_json.py
parent8499adc46132638c4761c4885f13da8e96d0a944 (diff)
downloadredis-py-eaa88ce67f708d2dc1d5235526d03f41fc4cae7c.tar.gz
Change json.clear test multi to be up to date with redisjson (#1922)
* fix json clear test * fix json clear test
Diffstat (limited to 'tests/test_json.py')
-rw-r--r--tests/test_json.py4
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