Update tests

This commit is contained in:
Veronica Berglyd Olsen
2022-06-12 17:54:37 +02:00
parent 52683d5a21
commit 88b2d61cec
12 changed files with 31 additions and 11 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ def testGuiMain_ProjectTreeItems(qtbot, monkeypatch, nwGUI, fncProj, mockRnd):
# Novel Tree has focus
nwGUI.projStack.setCurrentIndex(1)
nwGUI.novelView.refreshTree(True)
nwGUI.novelView.refreshTree(rootHandle=None, overRide=True)
with monkeypatch.context() as mp:
mp.setattr(GuiNovelView, "treeFocus", lambda *a: True)
assert nwGUI.docEditor.docHandle() is None