X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FTest%2FTestUndoRedo.py;h=26f54acb57863f07827cc21a36449d08221d9668;hb=5ee0ac732ede71b1a7784be6870c5f21f6782565;hp=1d0a37209b80cba0da6721496cb0f3d4a349a71b;hpb=d4813c98d8a022e99b37d0361d4fc15a193882d9;p=modules%2Fshaper.git diff --git a/src/ModelAPI/Test/TestUndoRedo.py b/src/ModelAPI/Test/TestUndoRedo.py index 1d0a37209..26f54acb5 100644 --- a/src/ModelAPI/Test/TestUndoRedo.py +++ b/src/ModelAPI/Test/TestUndoRedo.py @@ -6,13 +6,12 @@ assert(not aSession.canRedo()) aSession.startOperation() aFeature = aDoc.addFeature("Point") -aFeatureData = aFeature.data() # Since validators are introduced we have to initialize all # the feature's attributes -aFeatureData.real("x").setValue(1.) -aFeatureData.real("y").setValue(-1.) -aFeatureData.real("z").setValue(0.) -aFeatureName = aFeatureData.name() +aFeature.real("x").setValue(1.) +aFeature.real("y").setValue(-1.) +aFeature.real("z").setValue(0.) +aFeatureName = aFeature.name() assert(aFeatureName == "Point_1") aFeature.execute()