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
@@ -46,6 +46,7 @@ def testGuiProjectWizard_Main(qtbot, monkeypatch, nwGUI, nwMinimal):
"""
# Block message box
monkeypatch.setattr(QMessageBox, "question", lambda *args: QMessageBox.Yes)
monkeypatch.setattr(QMessageBox, "critical", lambda *args: QMessageBox.Yes)
if sys.platform.startswith("darwin"):
# Disable for macOS because the test segfaults on QWizard.show()