X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/063a4cb403419b05f6d81b1cd8d78dad905ddb5c..f6e894a53af83a69f553555cb4a6248d57a58391:/test/python/test_indexing.py?ds=inline diff --git a/test/python/test_indexing.py b/test/python/test_indexing.py index 2fe21e80..6b52a65e 100644 --- a/test/python/test_indexing.py +++ b/test/python/test_indexing.py @@ -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])