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

Fixing the 'exactly_one' parameter usage in the mapbox geocoder #358

Merged
merged 2 commits into from
May 14, 2019
Merged

Fixing the 'exactly_one' parameter usage in the mapbox geocoder #358

merged 2 commits into from
May 14, 2019

Conversation

zeljkobekcic
Copy link
Contributor

The mapbox geocoder returned exactly one argument even when setting exactly_one=False when geocoding. The problem was that the _parse_json method never recieved the said argument and used its default value exactly_one=True.

Copy link
Member

@KostyaEsmukov KostyaEsmukov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Could you please add a test so this wouldn't happen again in the future?

@zeljkobekcic
Copy link
Contributor Author

I have added a simple test which just checks if the result is a list. Do you think this is enough?

Copy link
Member

@KostyaEsmukov KostyaEsmukov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that will do. Merging, thank you!

@KostyaEsmukov KostyaEsmukov merged commit 873f7a9 into geopy:master May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants