Remove build language part of test as this is already done in workflow

This commit is contained in:
Veronica Berglyd Olsen
2022-11-17 17:19:40 +01:00
parent 77489d22cd
commit 281f878a79
+2 -9
View File
@@ -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.