Update tests

This commit is contained in:
Veronica Berglyd Olsen
2024-05-22 23:13:50 +02:00
parent cf16b57f66
commit cc32674b0f
8 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -173,7 +173,7 @@ def testDlgPreferences_Settings(qtbot, monkeypatch, nwGUI, tstPaths):
prefs.guiLocale.setCurrentIndex(prefs.guiLocale.findData("en_US"))
prefs.guiTheme.setCurrentIndex(prefs.guiTheme.findData("default_dark"))
with monkeypatch.context() as mp:
mp.setattr(QFontDialog, "getFont", lambda *a: (QFont(), True))
mp.setattr(QFontDialog, "getFont", lambda *a, **k: (QFont(), True))
prefs.guiFontButton.click()
prefs.hideVScroll.setChecked(True)
prefs.hideHScroll.setChecked(True)
@@ -187,7 +187,7 @@ def testDlgPreferences_Settings(qtbot, monkeypatch, nwGUI, tstPaths):
# Document Style
prefs.guiSyntax.setCurrentIndex(prefs.guiSyntax.findData("default_dark"))
with monkeypatch.context() as mp:
mp.setattr(QFontDialog, "getFont", lambda *a: (QFont(), True))
mp.setattr(QFontDialog, "getFont", lambda *a, **k: (QFont(), True))
prefs.textFontButton.click()
prefs.emphLabels.setChecked(False)
prefs.showFullPath.setChecked(False)