X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2c909c1f0c7c6e6a176eb5cc15e8d6a45449ebe8..a0ae4945cd60fb395e9d08a8306fb4f7201fa7d1:/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])