Skip to content

Commit e60d97e

Browse files
geosearch test should use any=True (#1594)
Co-authored-by: Avital Fine <[email protected]>
1 parent 16cfcc7 commit e60d97e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_commands.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,7 @@ def test_geosearch(self, r):
25472547
assert r.geosearch('barcelona', member='place3', radius=100,
25482548
unit='km', count=2) == [b'place3', b'\x80place2']
25492549
assert r.geosearch('barcelona', member='place3', radius=100,
2550-
unit='km', count=1, any=1)[0] \
2550+
unit='km', count=1, any=True)[0] \
25512551
in [b'place1', b'place3', b'\x80place2']
25522552

25532553
@skip_unless_arch_bits(64)
@@ -2652,7 +2652,8 @@ def test_geosearch_negative(self, r):
26522652

26532653
# use any without count
26542654
with pytest.raises(exceptions.DataError):
2655-
assert r.geosearch('barcelona', member='place3', radius=100, any=1)
2655+
assert r.geosearch('barcelona', member='place3',
2656+
radius=100, any=True)
26562657

26572658
@skip_if_server_version_lt('6.2.0')
26582659
def test_geosearchstore(self, r):

0 commit comments

Comments
 (0)