From 60d6d43c74e2c33438da0b9e8aad7be47de9d1cd Mon Sep 17 00:00:00 2001 From: dbv Date: Fri, 19 Aug 2016 15:02:57 +0300 Subject: [PATCH] Issue #1648: Dump Python in the High Level Parameterized Geometry API Tests fix --- src/PythonAPI/Test/TestFeaturesExtrusion.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/PythonAPI/Test/TestFeaturesExtrusion.py b/src/PythonAPI/Test/TestFeaturesExtrusion.py index a58c87662..54e4f3ccc 100644 --- a/src/PythonAPI/Test/TestFeaturesExtrusion.py +++ b/src/PythonAPI/Test/TestFeaturesExtrusion.py @@ -56,9 +56,9 @@ class FeaturesAddExtrusionTestCase(FeaturesAddExtrusionFixture): self.assertEqual(extrusion.toSize().value(), 10) self.assertEqual(extrusion.fromSize().value(), 0) self.assertEqual(extrusion.toObject().context(), None) - self.assertEqual(extrusion.toOffset().value(), 0) + self.assertEqual(extrusion.toOffset().isInitialized(), False) self.assertEqual(extrusion.fromObject().context(), None) - self.assertEqual(extrusion.fromOffset().value(), 0) + self.assertEqual(extrusion.fromOffset().isInitialized(), False) def test_add_extrusion_by_face_and_planes(self): # base @@ -85,8 +85,8 @@ class FeaturesAddExtrusionTestCase(FeaturesAddExtrusionFixture): from_object, 20) self.assertEqual(extrusion.creationMethod().value(), "ByPlanesAndOffsets") - self.assertEqual(extrusion.toSize().value(), 0) - self.assertEqual(extrusion.fromSize().value(), 0) + self.assertEqual(extrusion.toSize().isInitialized(), False) + self.assertEqual(extrusion.fromSize().isInitialized(), False) # self.assertEqual(extrusion.getToObject().context(), # to_sketch.result()) self.assertEqual(extrusion.toOffset().value(), 15) @@ -126,9 +126,9 @@ class FeaturesExtrusionTestCase(FeaturesExtrusionFixture): self.assertEqual(self.extrusion.toSize().value(), 15) self.assertEqual(self.extrusion.fromSize().value(), 20) self.assertEqual(self.extrusion.toObject().context(), None) - self.assertEqual(self.extrusion.toOffset().value(), 0) + self.assertEqual(self.extrusion.toOffset().isInitialized(), False) self.assertEqual(self.extrusion.fromObject().context(), None) - self.assertEqual(self.extrusion.fromOffset().value(), 0) + self.assertEqual(self.extrusion.fromOffset().isInitialized(), False) def test_extrusion_set_planes_and_offsets(self): # to @@ -146,6 +146,9 @@ class FeaturesExtrusionTestCase(FeaturesExtrusionFixture): to_object = to_sketch.selectFace()[0] from_object = from_sketch.selectFace()[0] + + self.part.moveFeature(self.extrusion.feature(), from_sketch.feature()) + self.extrusion.setPlanesAndOffsets(to_object, 15, from_object, 20) -- 2.39.2