diff --git a/swh/indexer/tests/conftest.py b/swh/indexer/tests/conftest.py --- a/swh/indexer/tests/conftest.py +++ b/swh/indexer/tests/conftest.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2020 The Software Heritage developers +# Copyright (C) 2019-2022 The Software Heritage developers # See the AUTHORS file at the top-level directory of this distribution # License: GNU General Public License version 3, or any later version # See top-level LICENSE file for more information @@ -13,7 +13,7 @@ from pytest_postgresql import factories import yaml -from swh.core.db.pytest_plugin import initialize_database_for_module, postgresql_fact +from swh.core.db.pytest_plugin import initialize_database_for_module from swh.indexer.storage import get_indexer_storage from swh.indexer.storage.db import Db as IndexerDb from swh.objstorage.factory import get_objstorage @@ -29,7 +29,6 @@ idx_postgresql_proc = factories.postgresql_proc( - dbname="indexer_storage", load=[ partial( initialize_database_for_module, @@ -39,7 +38,7 @@ ], ) -idx_storage_postgresql = postgresql_fact("idx_postgresql_proc") +idx_storage_postgresql = factories.postgresql("idx_postgresql_proc") @pytest.fixture