#
# 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.
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
-
-@pytest_asyncio.fixture
-async def api():
- api = napi.NominatimAPIAsync(Path('/invalid'))
- yield api
- await api.close()
-
+import nominatim_api.v1.server_glue as glue
class TestPolygonsEndPoint:
@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)
-
self.now = dt.datetime.now()
self.recent = dt.datetime.now() - dt.timedelta(days=3)