Page MenuHomeSoftware Heritage

D7934.diff
No OneTemporary

D7934.diff

diff --git a/swh/core/db/tests/test_db.py b/swh/core/db/tests/test_db.py
--- a/swh/core/db/tests/test_db.py
+++ b/swh/core/db/tests/test_db.py
@@ -16,11 +16,11 @@
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 @@
]
-test_db = postgresql_fact("postgresql_proc", dbname="test-db2")
+test_db = factories.postgresql("postgresql_proc", dbname="test-db2")
@pytest.fixture

File Metadata

Mime Type
text/plain
Expires
Sun, Aug 17, 8:05 PM (1 d, 11 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217051

Event Timeline