Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Sep 18, 2023
1 parent cb840a4 commit 345ad12
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_iceaddr.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
postcodes_for_region,
POSTCODES,
nearest_addr,
# nearest_placenames,
nearest_placenames,
)


Expand Down Expand Up @@ -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]

0 comments on commit 345ad12

Please sign in to comment.