Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9696446
D7934.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
745 B
Subscribers
None
D7934.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 17, 8:05 PM (1 d, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217051
Attached To
D7934: deprecate the db/pytest_plugin.py module
Event Timeline
Log In to Comment