From: spo Date: Mon, 26 Oct 2015 13:44:51 +0000 (+0300) Subject: Rename setSize to setSizes for Extrusion X-Git-Tag: V_2.1.0~206^2~68 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=52b9ab4637926954bb56c1e0aab203093e35c55f;p=modules%2Fshaper.git Rename setSize to setSizes for Extrusion --- diff --git a/src/PythonAPI/Test/TestFeaturesExtrusion.py b/src/PythonAPI/Test/TestFeaturesExtrusion.py index 46e6b31fe..7c11dfbe1 100644 --- a/src/PythonAPI/Test/TestFeaturesExtrusion.py +++ b/src/PythonAPI/Test/TestFeaturesExtrusion.py @@ -127,7 +127,7 @@ class FeaturesExtrusionTestCase(FeaturesExtrusionFixture): ModelAPI.ModelAPI_AttributeDouble)) def test_extrusion_set_sizes(self): - self.extrusion.setSize(15, 20) + self.extrusion.setSizes(15, 20) self.assertEqual(self.extrusion.getCreationMethod().value(), "BySizes") self.assertEqual(self.extrusion.getToSize().value(), 15) self.assertEqual(self.extrusion.getFromSize().value(), 20) diff --git a/src/PythonAPI/model/extrusion.py b/src/PythonAPI/model/extrusion.py index 88ab84711..a60493145 100644 --- a/src/PythonAPI/model/extrusion.py +++ b/src/PythonAPI/model/extrusion.py @@ -116,7 +116,7 @@ class Extrusion(Interface): self.__execute() pass - def setSize(self, *args): + def setSizes(self, *args): """Modify the to_size, from_size attributes of the feature. See __init__.