diff --git a/swh/scheduler/pytest_plugin.py b/swh/scheduler/pytest_plugin.py --- a/swh/scheduler/pytest_plugin.py +++ b/swh/scheduler/pytest_plugin.py @@ -12,7 +12,7 @@ import pytest from pytest_postgresql import factories -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.scheduler import get_scheduler from swh.scheduler.backend import SchedulerBackend @@ -22,7 +22,6 @@ scheduler_postgresql_proc = factories.postgresql_proc( - dbname="scheduler", load=[ partial( initialize_database_for_module, @@ -33,7 +32,7 @@ ) -postgresql_scheduler = postgresql_fact("scheduler_postgresql_proc") +postgresql_scheduler = factories.postgresql("scheduler_postgresql_proc") @pytest.fixture