summaryrefslogtreecommitdiff
path: root/tests/test_asyncio/test_json.py
diff options
context:
space:
mode:
authorGreg Melton <gmelton@gmail.com>2022-05-23 01:51:53 -0700
committerGitHub <noreply@github.com>2022-05-23 11:51:53 +0300
commit8a1feb397bce1d76593496fd57bf6d157d1ccbe9 (patch)
tree2027dc00c227e085b71e38909df42726c7ff8e1f /tests/test_asyncio/test_json.py
parent428510b5786c70a26a8797b8eb33b89777132884 (diff)
downloadredis-py-8a1feb397bce1d76593496fd57bf6d157d1ccbe9.tar.gz
Fix Linting and Test Failures (#2191)
* force triggering pr pipeline * fix lint error * https://github.com/RedisJSON/RedisJSON/pull/721 no longer clears strings or boolean scalars
Diffstat (limited to 'tests/test_asyncio/test_json.py')
-rw-r--r--tests/test_asyncio/test_json.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_asyncio/test_json.py b/tests/test_asyncio/test_json.py
index 6bd9581..c203c6d 100644
--- a/tests/test_asyncio/test_json.py
+++ b/tests/test_asyncio/test_json.py
@@ -899,11 +899,12 @@ async def test_clear_dollar(modclient: redis.Redis):
"nested3": {"a": {"baz": 50}},
},
)
+
# Test multi
- assert await modclient.json().clear("doc1", "$..a") == 4
+ assert await modclient.json().clear("doc1", "$..a") == 3
assert await modclient.json().get("doc1", "$") == [
- {"nested1": {"a": {}}, "a": [], "nested2": {"a": ""}, "nested3": {"a": {}}}
+ {"nested1": {"a": {}}, "a": [], "nested2": {"a": "claro"}, "nested3": {"a": {}}}
]
# Test single