X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a413aae8a3962be4d623844d867604df68a9a211..f960a9bf7fd1702b3d66995dd69307bd91d61a08:/test/python/api/test_helpers_v1.py?ds=sidebyside 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)