Update tests and test coverage
This commit is contained in:
@@ -24,7 +24,7 @@ import sys
|
||||
|
||||
import pytest
|
||||
|
||||
from PyQt6.QtWidgets import QApplication, QDialog, QMessageBox
|
||||
from PyQt6.QtWidgets import QApplication, QDialog
|
||||
|
||||
from novelwriter import CONFIG, SHARED
|
||||
from novelwriter.dialogs.about import GuiAbout
|
||||
@@ -49,8 +49,6 @@ LANG_DATA = CONFIG.listLanguages(CONFIG.LANG_NW)
|
||||
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.StandardButton.Yes)
|
||||
|
||||
# Set the test language
|
||||
CONFIG.guiLocale = language
|
||||
|
||||
Reference in New Issue
Block a user