X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModelAPI%2FTest%2FTestFolder_Stability.py;h=e6a86c297baf3186b97327d1be27392131c82ea2;hb=d7bf5f485cd35a83e3b2917978dc8da8c28bdd42;hp=e6cdbe893c8f280cc1a1f61fc381cbc00e4f6feb;hpb=cb9b847be24baefa1805740c8e5b65356da5732a;p=modules%2Fshaper.git diff --git a/src/ModelAPI/Test/TestFolder_Stability.py b/src/ModelAPI/Test/TestFolder_Stability.py index e6cdbe893..e6a86c297 100644 --- a/src/ModelAPI/Test/TestFolder_Stability.py +++ b/src/ModelAPI/Test/TestFolder_Stability.py @@ -22,6 +22,7 @@ # Test checks stability of the foldering mechanism due to incorrect input parameters #========================================================================= from ModelAPI import * +from GeomDataAPI import * __updated__ = "2017-11-23" @@ -33,9 +34,7 @@ def newPoint(theDocument, theX, theY, theZ): aPoint = theDocument.addFeature("Point") aPointData = aPoint.data() assert(aPointData is not None) - aPointData.real("x").setValue(theX) - aPointData.real("y").setValue(theY) - aPointData.real("z").setValue(theZ) + geomDataAPI_Point(aPointData.attribute("point3d")).setValue(theX, theY, theZ) aPointData.string("creation_method").setValue("by_xyz") aSession.finishOperation() return aPoint