Fix test cases by adopting to new behavior

Pad now does not have a Sketch property anymore but a profile property. Also due to changes in PropertyLinkSubList it ispossible that PropertyLinks get an empty list assigned, this must be supportet now.
This commit is contained in:
Stefan Tröger
2016-04-12 17:35:04 +02:00
parent 52ebfae6b1
commit cd2da9fe6d
2 changed files with 4 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ class PartDesignPadTestCases(unittest.TestCase):
TestSketcherApp.CreateSlotPlateSet(self.PadSketch)
self.Doc.recompute()
self.Pad = self.Doc.addObject("PartDesign::Pad","Pad")
self.Pad.Sketch = self.PadSketch
self.Pad.Profile = self.PadSketch
self.Doc.recompute()
self.failUnless(len(self.Pad.Shape.Faces) == 6)