From: dbv Date: Tue, 14 Jun 2016 10:59:20 +0000 (+0300) Subject: Fix Test/TestFeaturesExtrusion.py X-Git-Tag: V_2.4.0~91^2~49 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=813ed63d3e0c0c0064235f8e44250ac3733a08ed;p=modules%2Fshaper.git Fix Test/TestFeaturesExtrusion.py --- diff --git a/src/PythonAPI/Test/TestFeaturesExtrusion.py b/src/PythonAPI/Test/TestFeaturesExtrusion.py index 4b05bd88d..0405e58d8 100644 --- a/src/PythonAPI/Test/TestFeaturesExtrusion.py +++ b/src/PythonAPI/Test/TestFeaturesExtrusion.py @@ -65,12 +65,12 @@ class FeaturesAddExtrusionTestCase(FeaturesAddExtrusionFixture): base_circle = base_sketch.addCircle(0, 0, 10) # to to_plane = model.defaultPlane("XOY") - to_plane.location().setZ(10) + to_plane.origin().setZ(10) to_sketch = model.addSketch(self.part, to_plane) to_circle = to_sketch.addCircle(0, 0, 10) # from from_plane = model.defaultPlane("XOY") - from_plane.location().setZ(-10) + from_plane.origin().setZ(-10) from_sketch = model.addSketch(self.part, from_plane) from_circle = from_sketch.addCircle(0, 0, 10) @@ -132,12 +132,12 @@ class FeaturesExtrusionTestCase(FeaturesExtrusionFixture): def test_extrusion_set_planes_and_offsets(self): # to to_plane = model.defaultPlane("XOY") - to_plane.location().setZ(10) + to_plane.origin().setZ(10) to_sketch = model.addSketch(self.part, to_plane) to_circle = to_sketch.addCircle(0, 0, 10) # from from_plane = model.defaultPlane("XOY") - from_plane.location().setZ(-10) + from_plane.origin().setZ(-10) from_sketch = model.addSketch(self.part, from_plane) from_circle = from_sketch.addCircle(0, 0, 10)