X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/063a4cb403419b05f6d81b1cd8d78dad905ddb5c..a0ae4945cd60fb395e9d08a8306fb4f7201fa7d1:/test/python/test_indexing.py?ds=sidebyside 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])