X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/66ecb56cead429af78ac411654450b807852a06c..5a61d3d5f6ff1b0c9fe1d5d10c594033d40d5856:/test/python/api/test_api_deletable_v1.py?ds=inline diff --git a/test/python/api/test_api_deletable_v1.py b/test/python/api/test_api_deletable_v1.py index 4c5d96b6..649dd8fc 100644 --- a/test/python/api/test_api_deletable_v1.py +++ b/test/python/api/test_api_deletable_v1.py @@ -2,7 +2,7 @@ # # 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 deletable v1 API call. @@ -13,12 +13,10 @@ from pathlib import Path import pytest import pytest_asyncio -import psycopg2.extras - from fake_adaptor import FakeAdaptor, FakeError, FakeResponse -import nominatim.api.v1.server_glue as glue -import nominatim.api as napi +import nominatim_api.v1.server_glue as glue +import nominatim_api as napi @pytest_asyncio.fixture async def api(): @@ -31,7 +29,6 @@ class TestDeletableEndPoint: @pytest.fixture(autouse=True) def setup_deletable_table(self, temp_db_cursor, table_factory, temp_db_with_extensions): - psycopg2.extras.register_hstore(temp_db_cursor) table_factory('import_polygon_delete', definition='osm_id bigint, osm_type char(1), class text, type text', content=[(345, 'N', 'boundary', 'administrative'),