Page MenuHomeSoftware Heritage

D8044.diff
No OneTemporary

D8044.diff

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

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

Event Timeline