From 3f3ce9049e68400fa461223dfe1985a9bd076d0d Mon Sep 17 00:00:00 2001 From: "K. Shankari" Date: Sun, 22 Sep 2024 08:49:16 -0700 Subject: [PATCH] Fix expected value for geofabrik test Verified that base nominatim currently returns "India Street" https://nominatim.openstreetmap.org/ui/search.html?q=41.8174476%2C+-71.3903767 returns `India Street, Fox Point, Providence, Providence County, Rhode Island, 02906, United States Parking` --- emission/individual_tests/TestNominatim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emission/individual_tests/TestNominatim.py b/emission/individual_tests/TestNominatim.py index 361d99299..d25acfd99 100644 --- a/emission/individual_tests/TestNominatim.py +++ b/emission/individual_tests/TestNominatim.py @@ -116,9 +116,9 @@ def test_get_json_reverse(self): #Testing reverse_geocode, which reverse geocodes from a lat and lon and returns only the display name. def test_reverse_geocode(self): NominatimTest.nominatim("geofabrik") - expected_result = "Portugal Parkway, Fox Point, Providence, Providence County, Rhode Island, 02906, United States" + expected_result = "India Street, Fox Point, Providence, Providence County, Rhode Island, 02906, United States" actual_result = eco.Geocoder.reverse_geocode(41.8174476, -71.3903767) self.assertEqual(expected_result, actual_result) if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main()