Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geosearch test should use any=True #1594

Merged
merged 3 commits into from
Oct 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2463,7 +2463,7 @@ def test_geosearch(self, r):
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)
Expand Down Expand Up @@ -2568,7 +2568,8 @@ def test_geosearch_negative(self, r):

# 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):
Expand Down