From 250c26ea3fe07ea5b0f5dea2ccf12418f395b824 Mon Sep 17 00:00:00 2001 From: Shankari Date: Sun, 29 Sep 2024 09:03:16 -0700 Subject: [PATCH] Revert "Fix expected value for geofabrik test" This reverts commit 3f3ce9049e68400fa461223dfe1985a9bd076d0d. Portugal Parkway was renamed to India Street in OSM https://www.openstreetmap.org/way/636353162/history/5 But that was actually incorrect https://www.heraldnews.com/story/news/local/ojornal/2023/06/14/providence-india-street-renamed-to-portugal-parkway-to-honor-portuguese-heritage-contributions-r-i/70323974007/ So it has been named back https://www.openstreetmap.org/way/636353162/history/6 And so we can revert our "fix" --- 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 d25acfd99..361d99299 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 = "India Street, Fox Point, Providence, Providence County, Rhode Island, 02906, United States" + expected_result = "Portugal Parkway, 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() + unittest.main() \ No newline at end of file