From 345ad1241aa54c4c7eb9dacd50f575fbd8bf538e Mon Sep 17 00:00:00 2001 From: Sveinbjorn Thordarson Date: Mon, 18 Sep 2023 18:36:15 +0000 Subject: [PATCH] Updated tests --- tests/test_iceaddr.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test_iceaddr.py b/tests/test_iceaddr.py index ff01dfb..32436ce 100644 --- a/tests/test_iceaddr.py +++ b/tests/test_iceaddr.py @@ -25,7 +25,7 @@ postcodes_for_region, POSTCODES, nearest_addr, - # nearest_placenames, + nearest_placenames, ) @@ -179,10 +179,10 @@ def test_nearest_addr(): def test_nearest_placename(): """Test placename proximity function.""" - # pn = nearest_placenames(FISKISLOD_31_COORDS[0], FISKISLOD_31_COORDS[1]) - # assert len(pn) == 1 - # assert pn[0]["nafn"] == "Grandi" + pn = nearest_placenames(FISKISLOD_31_COORDS[0], FISKISLOD_31_COORDS[1]) + assert len(pn) == 1 + assert pn[0]["nafn"] == "Grandi" - # pn = nearest_placenames(OLDUGATA_4_COORDS[0], OLDUGATA_4_COORDS[1], limit=5) - # assert len(pn) == 5 - # assert "Landakotshæð" in [x["nafn"] for x in pn] + pn = nearest_placenames(OLDUGATA_4_COORDS[0], OLDUGATA_4_COORDS[1], limit=5) + assert len(pn) == 5 + assert "Landakotshæð" in [x["nafn"] for x in pn]