Update tests

This commit is contained in:
Veronica Berglyd Olsen
2023-01-08 18:11:06 +01:00
parent 22d761dea3
commit 65bfd20ced
+5
View File
@@ -885,6 +885,11 @@ def testGuiProjTree_Other(qtbot, monkeypatch, nwGUI, projPath, mockRnd):
nwGUI.theProject.tree[nHandle].setParent(None)
assert projTree.revealNewTreeItem(nHandle) is False
# Try to add an item with unknown parent to the tree
nHandle = nwGUI.theProject.newFile("Test", C.hNovelRoot)
nwGUI.theProject.tree[nHandle].setParent(C.hInvalid)
assert projTree.revealNewTreeItem(nHandle) is False
# Method: undoLastMove
# ====================