OpenSCAD: a test internally uses the DXF importer

If not all 3rd party packages are installed the DXF importer opens a modal dialog and blocks the tests
This commit is contained in:
wmayer
2023-07-12 16:34:41 +02:00
committed by Chris Hennes
parent 2559d7e7b6
commit 8e6fbd2886

View File

@@ -121,6 +121,10 @@ class TestImportCSG(unittest.TestCase):
FreeCAD.closeDocument(doc.Name)
def test_import_text(self):
# This uses the DXF importer that may pop-up modal dialogs
# if not all 3rd party libraries are installed
if FreeCAD.GuiUp:
return
try:
doc = self.utility_create_scad("text(\"X\");","text") # Keep it short to keep the test fast-ish
text = doc.getObject("text")