Skip to content
Snippets Groups Projects

Set object id when calling objstorage.add

Compare and
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -327,7 +327,7 @@ def test_export_content_with_data(monkeypatch, tmpdir):
obj_type = "content"
objstorage = get_objstorage("memory")
for content in TEST_OBJECTS[obj_type]:
objstorage.add(content.data)
objstorage.add(content=content.data, obj_id=content.sha1)
def get_objstorage_mock(**kw):
if kw.get("cls") == "mock":
Loading