Test: make test for STEP import independent of user settings

If the option 'Enable STEP compound merge' is active the test would fail
This commit is contained in:
wmayer
2024-06-12 14:05:56 +02:00
committed by wwmayer
parent e96ec07f8e
commit f4f694e793

View File

@@ -56,7 +56,7 @@ class ExportImportTest(unittest.TestCase):
ImportGui.export([part], self.fileName)
self.doc.clearDocument()
ImportGui.insert(name=self.fileName, docName=self.doc.Name, useLinkGroup=True)
ImportGui.insert(name=self.fileName, docName=self.doc.Name, merge=False, useLinkGroup=True)
part_features = list(filter(lambda x: x.isDerivedFrom("Part::Feature"), self.doc.Objects))
self.assertEqual(len(part_features), 1)