Skip to content

Commit

Permalink
Fix georadius tests (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
AvitalFineRedis authored Nov 8, 2021
1 parent ea04bae commit 325fcd9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2744,7 +2744,7 @@ def test_georadius_with(self, r):
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')
Expand Down Expand Up @@ -2806,6 +2806,12 @@ def test_georadiusmember(self, r):
(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']
Expand Down

0 comments on commit 325fcd9

Please sign in to comment.