Skip to content

Commit

Permalink
Here geocoder tests: fix a failure for the second page results count
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaEsmukov committed Aug 4, 2019
1 parent 85ccae7 commit 53c8e38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/geocoders/here.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def test_geocode_with_language_en(self):

def test_geocode_with_paging(self):
"""
Here.geocode using simple paging "ouside" geopy
Here.geocode using simple paging "outside" geopy
"""
address_string = "Hauptstr., Berlin, Germany"
input = {"query": address_string, "maxresults": 12, "exactly_one": False}
Expand All @@ -139,7 +139,8 @@ def test_geocode_with_paging(self):

input["pageinformation"] = 2
res = self.geocode_run(input, {})
self.assertEqual(len(res), 3)
self.assertGreaterEqual(len(res), 3)
self.assertLessEqual(len(res), 6)

input["pageinformation"] = 3
res = self.geocode_run(input, {}, expect_failure=True)
Expand Down

0 comments on commit 53c8e38

Please sign in to comment.