diff options
author | Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com> | 2021-10-20 09:10:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-20 16:10:08 +0300 |
commit | e60d97e6f428f4c536324922ebbe7efcd2440b83 (patch) | |
tree | d240f6f4d17d98c17deb29ea2f8dc691b2826e64 | |
parent | 16cfcc7fced84d2b53edf95af1c40b230b30fc3d (diff) | |
download | redis-py-e60d97e6f428f4c536324922ebbe7efcd2440b83.tar.gz |
geosearch test should use any=True (#1594)
Co-authored-by: Avital Fine <79420960+AvitalFineRedis@users.noreply.github.com>
-rw-r--r-- | tests/test_commands.py | 5 |
1 files 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): |