FEM: fix unit test

This commit is contained in:
Bernd Hahnebach
2020-05-22 22:25:20 +02:00
parent a3a61c3348
commit 6074ffa69a
2 changed files with 5 additions and 2 deletions

View File

@@ -25,7 +25,7 @@
# Gui Unit tests for the FEM module
# to get the right order import as is used
from femtest.gui.test_femopen import TestObjectOpen as FemGuiTest01
from femtest.gui.test_open import TestObjectOpen as FemGuiTest01
# dummy usage to get flake8 and lgtm quiet

View File

@@ -116,7 +116,10 @@ class TestFemCommon(unittest.TestCase):
) and sys.version_info.major < 3:
continue
if mod == "femsolver.solver_taskpanel" and not FreeCAD.GuiUp:
if (
mod == "femsolver.solver_taskpanel"
or mod == "TestFemGui"
) and not FreeCAD.GuiUp:
continue
fcc_print("Try importing {0} ...".format(mod))