diff options
author | Avital Fine <79420960+AvitalFineRedis@users.noreply.github.com> | 2021-10-14 16:05:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 16:05:17 +0200 |
commit | 298d72267922e01ed325ef937692cbf879c2528e (patch) | |
tree | 26801fa5174c5752713beb34b51f0a5fc08aec60 /tests | |
parent | eeac2529e91d691cc0d22206b81cef15909b73ed (diff) | |
parent | 90468846acb7812df6419d54a9c191156e170516 (diff) | |
download | redis-py-298d72267922e01ed325ef937692cbf879c2528e.tar.gz |
Merge pull request #1606 from AvitalFineRedis/GEORADIUS_count_any
Add support to ANY to GEOSEARCHSTORE and to GEOSEARCH
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_commands.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index 21f2597..904e27f 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -2655,6 +2655,9 @@ class TestRedisCommands: r.geoadd('barcelona', *values) assert r.georadius('barcelona', 2.191, 41.433, 3000, count=1) == \ [b'place1'] + assert r.georadius('barcelona', 2.191, 41.433, 3000, + count=1, any=True) == \ + [b'place2'] @skip_if_server_version_lt('3.2.0') def test_georadius_sort(self, r): @@ -2706,6 +2709,9 @@ class TestRedisCommands: (2.187376320362091, 41.40634178640635)], [b'place1', 0.0, 3471609698139488, (2.1909382939338684, 41.433790281840835)]] + assert r.georadiusbymember('barcelona', 'place1', 4000, + count=1, any=True) == \ + [b'\x80place2'] @skip_if_server_version_lt('5.0.0') def test_xack(self, r): |