Skip to content

Commit

Permalink
Fix a failing Nominatim test for featuretype
Browse files Browse the repository at this point in the history
test/geocoders/nominatim.py:259: in test_featuretype_param
    {"latitude": 19.4839446, "longitude": -99.6899716, "delta": 2.0},
test/geocoders/util.py:94: in geocode_run
    **expected)
test/geocoders/util.py:173: in _verify_request
    assert received == expected
E   AssertionError: assert (34.5708167, ...s of America') == (19.4839446 ± ....0e+00, <ANY>)
E     At index 0 diff: 34.5708167 != 19.4839446 ± 2.0e+00
E     Use -v to get the full diff

(The previous coordinates were wrong and pointed to Mexico the country
instead of New Mexico the state, but Pickpoint and OpenMapQuest are still
returning the old coordinates without the `country_codes` filter).
  • Loading branch information
KostyaEsmukov committed Sep 13, 2020
1 parent 39934a3 commit 76bb2b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/geocoders/nominatim.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ async def test_featuretype_param(self):

await self.geocode_run(
{"query": "mexico",
"featuretype": 'state'},
{"latitude": 19.4839446, "longitude": -99.6899716, "delta": 2.0},
"featuretype": 'state', "country_codes": "US"},
{"latitude": 34.5708167, "longitude": -105.993007, "delta": 2.0},
)

await self.geocode_run(
Expand Down

0 comments on commit 76bb2b1

Please sign in to comment.