X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/371a780ef427d1b905a729da5f289b5e1099c152..a2a44b875a02db284d0f67eb9a20506622da2257:/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)