From 281f878a79170e9d906af458541c928b52ecad90 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 17 Nov 2022 17:19:40 +0100 Subject: [PATCH] Remove build language part of test as this is already done in workflow --- tests/test_gui/test_gui_i18n.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/test_gui/test_gui_i18n.py b/tests/test_gui/test_gui_i18n.py index 46689e77..f5c6cb06 100644 --- a/tests/test_gui/test_gui_i18n.py +++ b/tests/test_gui/test_gui_i18n.py @@ -26,19 +26,12 @@ import pytest from PyQt5.QtWidgets import qApp, QMessageBox -LANG_DATA = {} -if sys.platform.startswith("linux"): - try: - from setup import buildQtI18n - buildQtI18n() - LANG_DATA = novelwriter.CONFIG.listLanguages(novelwriter.CONFIG.LANG_NW) - except Exception: - pass +LANG_DATA = novelwriter.CONFIG.listLanguages(novelwriter.CONFIG.LANG_NW) @pytest.mark.gui @pytest.mark.skipif(not sys.platform.startswith("linux"), reason="Linux Only") -@pytest.mark.skipif(not LANG_DATA, reason="No language data") +@pytest.mark.skipif(not LANG_DATA, reason="No i18n Data") @pytest.mark.parametrize("language", [a for a, b in LANG_DATA]) def testI18n_Localisation(qtbot, monkeypatch, language, fncPath, fncConf): """test loading the gui with a specific language.