From e60d97e6f428f4c536324922ebbe7efcd2440b83 Mon Sep 17 00:00:00 2001 From: Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com> Date: Wed, 20 Oct 2021 09:10:08 -0400 Subject: geosearch test should use any=True (#1594) Co-authored-by: Avital Fine <79420960+AvitalFineRedis@users.noreply.github.com> --- tests/test_commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_commands.py b/tests/test_commands.py index b7fa6bf..ceb1236 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -2547,7 +2547,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=1)[0] \ + unit='km', count=1, any=True)[0] \ in [b'place1', b'place3', b'\x80place2'] @skip_unless_arch_bits(64) @@ -2652,7 +2652,8 @@ class TestRedisCommands: # use any without count with pytest.raises(exceptions.DataError): - assert r.geosearch('barcelona', member='place3', radius=100, any=1) + assert r.geosearch('barcelona', member='place3', + radius=100, any=True) @skip_if_server_version_lt('6.2.0') def test_geosearchstore(self, r): -- cgit v1.2.1