Add test coverage of DocDuplicator class

This commit is contained in:
Veronica Berglyd Olsen committed 2023-07-20 20:36:09 +02:00
1 parent 7a72634448
commit b3c744d22e
3 files changed
+248 -5

No files matched your search

+1
View File
@@ -292,6 +292,7 @@ class DocDuplicator:
hMap[tHandle] = newItem.itemHandle
if newItem.itemParent in hMap:
newItem.setParent(hMap[newItem.itemParent])
self._project.tree.updateItemData(newItem.itemHandle)
if newItem.isFileType():
oldDoc = self._project.storage.getDocument(tHandle)
newDoc = self._project.storage.getDocument(newItem.itemHandle)