Fix GUI blocking in tests

This commit is contained in:
Veronica K. B. Olsen
2021-01-31 13:44:44 +01:00
parent cca895e418
commit 3cecc1229f
5 changed files with 9 additions and 2 deletions
+1
View File
@@ -38,6 +38,7 @@ def testGuiViewer_Main(qtbot, monkeypatch, nwGUI, nwLipsum):
"""
# Block message box
monkeypatch.setattr(QMessageBox, "question", lambda *args: QMessageBox.Yes)
monkeypatch.setattr(QMessageBox, "information", lambda *args: QMessageBox.Yes)
# Open project
nwGUI.theProject.projTree.setSeed(42)