X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c314a3092c5b51c7782015f6fa9ac093b46fa174..c2aa7a9b439740c2ac6b5f1d532c2375a113e921:/test/python/api/test_api_polygons_v1.py diff --git a/test/python/api/test_api_polygons_v1.py b/test/python/api/test_api_polygons_v1.py index bf51cd17..ac2b4cb9 100644 --- a/test/python/api/test_api_polygons_v1.py +++ b/test/python/api/test_api_polygons_v1.py @@ -12,28 +12,15 @@ import datetime as dt 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() - 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)