diff options
Diffstat (limited to 'tests/test_commands.py')
| -rw-r--r-- | tests/test_commands.py | 9 |
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): |
