X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/bd2c64876f7ddc99da14ea78a652f797e17134f4..086116b3a14f84a5d23b33acd5390245aea88d71:/test/python/api/test_helpers_v1.py diff --git a/test/python/api/test_helpers_v1.py b/test/python/api/test_helpers_v1.py index 45f538de..3a6a9a0b 100644 --- a/test/python/api/test_helpers_v1.py +++ b/test/python/api/test_helpers_v1.py @@ -2,16 +2,20 @@ # # This file is part of Nominatim. (https://nominatim.org) # -# Copyright (C) 2023 by the Nominatim developer community. +# Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the helper functions for v1 API. """ import pytest -import nominatim.api.v1.helpers as helper +import nominatim_api.v1.helpers as helper -@pytest.mark.parametrize('inp', ['', 'abc', '12 23', 'abc -78.90, 12.456 def']) +@pytest.mark.parametrize('inp', ['', + 'abc', + '12 23', + 'abc -78.90, 12.456 def', + '40 N 60 W']) def test_extract_coords_no_coords(inp): query, x, y = helper.extract_coords_from_query(inp)