diff options
author | Avital Fine <79420960+AvitalFineRedis@users.noreply.github.com> | 2021-11-08 16:52:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-08 17:52:32 +0200 |
commit | 325fcd9e15bf0125f9a60012d7eb7824e7b4ab33 (patch) | |
tree | 90b72c541f7c4d6b610df08af9235e83419cddc2 | |
parent | ea04bae5e082ff71aaa1f9a9d07d9bda10b7696e (diff) | |
download | redis-py-325fcd9e15bf0125f9a60012d7eb7824e7b4ab33.tar.gz |
Fix georadius tests (#1672)
-rw-r--r-- | tests/test_commands.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index 37a3698..6d4ab00 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -2744,7 +2744,7 @@ class TestRedisCommands: assert r.georadius('barcelona', 2, 1, 1, unit='km', withdist=True, withcoord=True, withhash=True) == [] - @skip_if_server_version_lt('3.2.0') + @skip_if_server_version_lt('6.2.0') def test_georadius_count(self, r): values = (2.1909389952632, 41.433791470673, 'place1') + \ (2.1873744593677, 41.406342043777, 'place2') @@ -2806,6 +2806,12 @@ class TestRedisCommands: (2.187376320362091, 41.40634178640635)], [b'place1', 0.0, 3471609698139488, (2.1909382939338684, 41.433790281840835)]] + + @skip_if_server_version_lt('6.2.0') + def test_georadiusmember_count(self, r): + values = (2.1909389952632, 41.433791470673, 'place1') + \ + (2.1873744593677, 41.406342043777, b'\x80place2') + r.geoadd('barcelona', values) assert r.georadiusbymember('barcelona', 'place1', 4000, count=1, any=True) == \ [b'\x80place2'] |