Update cursor and messagebox enums

This commit is contained in:
Veronica Berglyd Olsen
2024-09-18 21:51:23 +02:00
parent cc8d7d9912
commit 21d21846ca
9 changed files with 24 additions and 23 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ def testGuiI18n_Localisation(qtbot, monkeypatch, language, nwGUI, projPath):
"""Test loading the gui with a specific language."""
monkeypatch.setattr(QDialog, "exec", lambda *a: None)
monkeypatch.setattr(QMessageBox, "exec", lambda *a: None)
monkeypatch.setattr(QMessageBox, "result", lambda *a: QMessageBox.Yes)
monkeypatch.setattr(QMessageBox, "result", lambda *a: QMessageBox.StandardButton.Yes)
# Set the test language
CONFIG.guiLocale = language