summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-10-25 17:06:04 +0300
committerGitHub <noreply@github.com>2021-10-25 17:06:04 +0300
commit3946da29d7e451a20289fb6e282516fa24e402af (patch)
tree25cf4b73b4e00d66c75288790616ea882823e2b7 /tests/test_commands.py
parent0ef4c0711693b4b313ce97261214bd151d8261d5 (diff)
downloadredis-py-3946da29d7e451a20289fb6e282516fa24e402af.tar.gz
redisjson support (#1636)
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 694090e..6d65931 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -2552,7 +2552,7 @@ class TestRedisCommands:
assert r.geosearch('barcelona', member='place3', radius=100,
unit='km', count=2) == [b'place3', b'\x80place2']
assert r.geosearch('barcelona', member='place3', radius=100,
- unit='km', count=1, any=True)[0] \
+ unit='km', count=1, any=1)[0] \
in [b'place1', b'place3', b'\x80place2']
@skip_unless_arch_bits(64)
@@ -2657,8 +2657,7 @@ class TestRedisCommands:
# use any without count
with pytest.raises(exceptions.DataError):
- assert r.geosearch('barcelona', member='place3',
- radius=100, any=True)
+ assert r.geosearch('barcelona', member='place3', radius=100, any=1)
@skip_if_server_version_lt('6.2.0')
def test_geosearchstore(self, r):
@@ -3239,7 +3238,6 @@ class TestRedisCommands:
response = r.xpending_range(stream, group,
min='-', max='+', count=5,
consumername=consumer1)
- assert len(response) == 1
assert response[0]['message_id'] == m1
assert response[0]['consumer'] == consumer1.encode()
@@ -3604,7 +3602,8 @@ class TestRedisCommands:
@skip_if_server_version_lt('4.0.0')
def test_module_list(self, r):
assert isinstance(r.module_list(), list)
- assert not r.module_list()
+ for x in r.module_list():
+ assert isinstance(x, dict)
@skip_if_server_version_lt('2.8.13')
def test_command_count(self, r):