Skip to content
Snippets Groups Projects
Commit 8523bca5 authored by David Douard's avatar David Douard
Browse files

tests: use stock pytest_postgresql factory function

instead of the custom factory_fact.
parent 749ac571
No related branches found
No related tags found
Loading
......@@ -16,11 +16,11 @@ from hypothesis import given, settings, strategies
from hypothesis.extra.pytz import timezones
import psycopg2
import pytest
from pytest_postgresql import factories
from typing_extensions import Protocol
from swh.core.db import BaseDb
from swh.core.db.common import db_transaction, db_transaction_generator
from swh.core.db.pytest_plugin import postgresql_fact
from swh.core.db.tests.conftest import function_scoped_fixture_check
......@@ -244,7 +244,7 @@ def convert_lines(cur):
]
test_db = postgresql_fact("postgresql_proc", dbname="test-db2")
test_db = factories.postgresql("postgresql_proc", dbname="test-db2")
@pytest.fixture
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment