]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/test_indexing.py
add unit tests for new check_database code
[nominatim.git] / test / python / test_indexing.py
index 2fe21e80baf15500462d5f9a3314ac267678e23d..6b52a65ea6171d318e2d6d6d81a9a1ac51cbe2d2 100644 (file)
@@ -82,10 +82,8 @@ class IndexerTestDB:
 
 
 @pytest.fixture
-def test_db(temp_db):
-    conn = psycopg2.connect(database=temp_db)
-    yield IndexerTestDB(conn)
-    conn.close()
+def test_db(temp_db_conn):
+    yield IndexerTestDB(temp_db_conn)
 
 
 @pytest.mark.parametrize("threads", [1, 15])