Remove code related to orphaned files

This commit is contained in:
Veronica K. B. Olsen
2020-12-21 01:39:18 +01:00
parent 6a188a5906
commit 414f4d3a6e
11 changed files with 13 additions and 203 deletions
+2 -3
View File
@@ -127,11 +127,10 @@ def testGuiProjTree_Main(qtbot, monkeypatch, nwGUI, nwMinimal):
nwGUI.openProject(nwMinimal)
# Check that the orphaned file was found and added to the tree
assert nwTree.orphRoot is not None
nwTree.flushTreeOrder()
assert "1234567890abc" not in nwGUI.theProject.projTree._treeOrder
assert "1234567890abc" in nwGUI.theProject.projTree._treeOrder
orItem = nwTree._getTreeItem("1234567890abc")
assert orItem.text(nwTree.C_NAME) == "Orphaned File 1"
assert orItem.text(nwTree.C_NAME) == "Recovered File 1"
# qtbot.stopForInteraction()