From 1a70a4ec1c7b4c014de9e9d988be74293f715b3b Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Wed, 30 Sep 2020 23:10:47 +0200 Subject: [PATCH] Get that one last line in the About dialog test --- tests/test_dialogs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_dialogs.py b/tests/test_dialogs.py index a95eba02..defc6397 100644 --- a/tests/test_dialogs.py +++ b/tests/test_dialogs.py @@ -380,6 +380,10 @@ def testAboutBox(qtbot, monkeypatch, nwFuncTemp, nwTemp): assert msgAbout.pageAbout.document().characterCount() > 100 assert msgAbout.pageLicense.document().characterCount() > 100 + msgAbout.mainConf.guiLang = "whatever" + msgAbout._fillLicensePage() + assert msgAbout.pageLicense.toPlainText() == "Error loading license text ..." + # Qt About monkeypatch.setattr(QMessageBox, "aboutQt", lambda *args, **kwargs: None) nwGUI.mainMenu.aAboutQt.activate(QAction.Trigger)