Skip to content

Commit

Permalink
tests GeocodeFarm: update expected address (#437)
Browse files Browse the repository at this point in the history
test/geocoders/geocodefarm.py:45: in test_location_address
    "latitude": 55.7558913503453, "longitude": 37.6172961632184}
test/geocoders/util.py:94: in geocode_run
    **expected)
test/geocoders/util.py:173: in _verify_request
    assert received == expected
E   AssertionError: assert (55.756542205...ssia, Russia') == (55.755891350...scow, Russia')
E     At index 2 diff: 'Moscow, Russia, Russia' != 'Moscow, Russia'
E     Use -v to get the full diff
  • Loading branch information
KostyaEsmukov committed Dec 20, 2020
1 parent 79ee278 commit 866228e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/geocoders/geocodefarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ async def test_geocode(self):
assert "chicago" in location.address.lower()

async def test_location_address(self):
await self.geocode_run(
location = await self.geocode_run(
{"query": "moscow"},
{"address": "Moscow, Russia",
"latitude": 55.7558913503453, "longitude": 37.6172961632184}
{"latitude": 55.755891, "longitude": 37.61729}
)
assert "Moscow, Russia" in location.address # 'Moscow, Russia, Russia'

async def test_reverse(self):
location = await self.reverse_run(
Expand Down

0 comments on commit 866228e

Please sign in to comment.