Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9340826
D4016.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
875 B
Subscribers
None
D4016.diff
View Options
diff --git a/swh/storage/pytest_plugin.py b/swh/storage/pytest_plugin.py
--- a/swh/storage/pytest_plugin.py
+++ b/swh/storage/pytest_plugin.py
@@ -24,19 +24,14 @@
@pytest.fixture
-def swh_storage_backend_config(postgresql_proc, swh_storage_postgresql):
+def swh_storage_backend_config(swh_storage_postgresql):
"""Basic pg storage configuration with no journal collaborator
(to avoid pulling optional dependency on clients of this fixture)
"""
yield {
"cls": "local",
- "db": "postgresql://{user}@{host}:{port}/{dbname}".format(
- host=postgresql_proc.host,
- port=postgresql_proc.port,
- user="postgres",
- dbname="tests",
- ),
+ "db": swh_storage_postgresql.dsn,
"objstorage": {"cls": "memory", "args": {}},
"check_config": {"check_write": True},
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 11:13 AM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3220890
Attached To
D4016: pytest_plugin: Reuse swh_storage_postgresql connection string
Event Timeline
Log In to Comment