From 7a944926766380d8a0a68543b483eec870c4e66e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Sat, 10 Dec 2016 08:19:25 +0100 Subject: [PATCH] PartDesign: Adopt test to new primitive behavior --- src/Mod/PartDesign/TestPartDesignGui.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Mod/PartDesign/TestPartDesignGui.py b/src/Mod/PartDesign/TestPartDesignGui.py index 83ac7fd4d6..ab158b91e9 100644 --- a/src/Mod/PartDesign/TestPartDesignGui.py +++ b/src/Mod/PartDesign/TestPartDesignGui.py @@ -74,11 +74,7 @@ class PartDesignGuiTestCases(unittest.TestCase): self.BoxObj.Height=10.0 self.BodySource.addFeature(self.BoxObj) - self.BoxCoords = self.Doc.addObject('PartDesign::CoordinateSystem','CoordinateSystem') - self.BodySource.addFeature(self.BoxCoords) - self.BoxObj.CoordinateSystem=(self.BoxCoords) App.ActiveDocument.recompute() - Gui.activeDocument().hide('CoordinateSystem') self.Sketch = self.Doc.addObject('Sketcher::SketchObject','Sketch') self.Sketch.Support = (self.BoxObj, ('Face3',)) @@ -124,7 +120,7 @@ class PartDesignGuiTestCases(unittest.TestCase): QtCore.QTimer.singleShot(500, cobj) Gui.runCommand('PartDesign_MoveFeature') #assert depenedencies of the Sketch - self.assertEqual(len(self.BodySource.Model), 4, "Source body feature count is wrong") + self.assertEqual(len(self.BodySource.Model), 3, "Source body feature count is wrong") self.assertEqual(len(self.BodyTarget.Model), 0, "Target body feature count is wrong") def testMoveSingleFeature(self):