Fix some missing test coverage

This commit is contained in:
Veronica Berglyd Olsen committed 2023-08-23 20:51:42 +02:00
1 parent af50b219a6
commit e1ba66fb87
5 files changed
+137 -117

No files matched your search

+1 -2
View File
@@ -39,8 +39,7 @@ KEY_DELAY = 1
@pytest.mark.gui
def testDlgPreferences_Main(qtbot, monkeypatch, nwGUI, tstPaths):
"""Test the load project wizard.
"""
"""Test the preferences dialog."""
monkeypatch.setattr(GuiPreferences, "exec_", lambda *a: None)
monkeypatch.setattr(GuiPreferences, "result", lambda *a: QDialog.Accepted)
monkeypatch.setattr(nwGUI.docEditor.spEnchant, "listDictionaries", lambda: [("en", "none")])