Merge branch 'main' into release

This commit is contained in:
Veronica K. B. Olsen
2021-01-31 12:51:36 +01:00
3 changed files with 9 additions and 1 deletions
+2
View File
@@ -30,6 +30,7 @@ from PyQt5.QtCore import Qt
from PyQt5.QtGui import QTextCursor
from PyQt5.QtWidgets import QAction, QMessageBox
from nw.gui.projtree import GuiProjectTree
from nw.constants import nwItemType, nwDocAction
keyDelay = 2
@@ -42,6 +43,7 @@ def testGuiEditor_Main(qtbot, monkeypatch, nwGUI, fncDir, fncProj, refDir, outDi
"""
# Block message box
monkeypatch.setattr(QMessageBox, "question", lambda *args: QMessageBox.Yes)
monkeypatch.setattr(GuiProjectTree, "hasFocus", lambda *args: True)
# Create new, save, close project
nwGUI.theProject.projTree.setSeed(42)