Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9346331
D8044.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
503 B
Subscribers
None
D8044.diff
View Options
diff --git a/swh/indexer/tests/conftest.py b/swh/indexer/tests/conftest.py
--- a/swh/indexer/tests/conftest.py
+++ b/swh/indexer/tests/conftest.py
@@ -117,9 +117,7 @@
"""
objstorage = get_objstorage(**swh_indexer_config["objstorage"])
fill_obj_storage(objstorage)
- with patch.dict(
- "swh.objstorage.factory._STORAGE_CLASSES", {"memory": lambda: objstorage}
- ):
+ with patch("swh.indexer.indexer.get_objstorage", return_value=objstorage):
yield objstorage
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 3:54 PM (2 w, 21 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3219938
Attached To
D8044: tests: Update mock to work with objstorage >= v2.0.0
Event Timeline
Log In to Comment