]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/api/test_api_polygons_v1.py
port code to psycopg3
[nominatim.git] / test / python / api / test_api_polygons_v1.py
index bf51cd17ff2864c7e37eb60b6058286a10e82cfb..558be813e4d1b8c8183cd7ae5ae1826bb4d39149 100644 (file)
@@ -14,8 +14,6 @@ from pathlib import Path
 import pytest
 import pytest_asyncio
 
 import pytest
 import pytest_asyncio
 
-import psycopg2.extras
-
 from fake_adaptor import FakeAdaptor, FakeError, FakeResponse
 
 import nominatim_api.v1.server_glue as glue
 from fake_adaptor import FakeAdaptor, FakeError, FakeResponse
 
 import nominatim_api.v1.server_glue as glue
@@ -32,8 +30,6 @@ class TestPolygonsEndPoint:
 
     @pytest.fixture(autouse=True)
     def setup_deletable_table(self, temp_db_cursor, table_factory, temp_db_with_extensions):
 
     @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)
 
         self.now = dt.datetime.now()
         self.recent = dt.datetime.now() - dt.timedelta(days=3)