From 40cc2880e0a34e1fab3949373acc02cf2f6b3ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Thu, 22 Dec 2016 22:14:17 +0100 Subject: [PATCH] PartDesign: Fix test for new group body --- src/Mod/PartDesign/TestPartDesignGui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/PartDesign/TestPartDesignGui.py b/src/Mod/PartDesign/TestPartDesignGui.py index cac04b685..1ba4ce4b4 100644 --- a/src/Mod/PartDesign/TestPartDesignGui.py +++ b/src/Mod/PartDesign/TestPartDesignGui.py @@ -120,8 +120,8 @@ class PartDesignGuiTestCases(unittest.TestCase): QtCore.QTimer.singleShot(500, cobj) Gui.runCommand('PartDesign_MoveFeature') #assert depenedencies of the Sketch - 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") + self.assertEqual(len(self.BodySource.Group), 3, "Source body feature count is wrong") + self.assertEqual(len(self.BodyTarget.Group), 0, "Target body feature count is wrong") def testMoveSingleFeature(self): FreeCAD.Console.PrintMessage('Testing moving one feature from one body to another\n') @@ -176,8 +176,8 @@ class PartDesignGuiTestCases(unittest.TestCase): self.assertFalse(self.Sketch.Support[0][0] in self.BodySource.Origin.OriginFeatures) self.assertTrue(self.Sketch.Support[0][0] in self.BodyTarget.Origin.OriginFeatures) - self.assertEqual(len(self.BodySource.Model), 0, "Source body feature count is wrong") - self.assertEqual(len(self.BodyTarget.Model), 2, "Target body feature count is wrong") + self.assertEqual(len(self.BodySource.Group), 0, "Source body feature count is wrong") + self.assertEqual(len(self.BodyTarget.Group), 2, "Target body feature count is wrong") def tearDown(self): FreeCAD.closeDocument("SketchGuiTest")