Salome HOME
Tests update
[modules/shaper.git] / src / FeaturesPlugin / Test / TestRevolutionSketch.py
index 5890157536bbea48c8e635819bdeada3f0b7663b..ed54d928ab569fcde9b0a4630719df288fb4c309 100644 (file)
@@ -62,6 +62,7 @@ aCircleRadius = aSketchCircle.real("CircleRadius")
 anCircleCentr.setValue(0, 0)
 aCircleRadius.setValue(10)
 aSession.finishOperation()
+aSession.startOperation()
 anRevolutionSketchFt.selection("axis_object").setValue(aLineSketchResult, aLineEdge)
 anRevolutionSketchFt.string("CreationMethod").setValue("ByAngles")
 anRevolutionSketchFt.real("to_angle").setValue(50)
@@ -70,6 +71,7 @@ anRevolutionSketchFt.real("to_offset").setValue(0) #TODO: remove
 anRevolutionSketchFt.real("from_offset").setValue(0) #TODO: remove
 anRevolutionSketchFt.execute()
 aSession.finishOperation()
+aSession.finishOperation()
 
 #=========================================================================
 # Test results
@@ -128,6 +130,7 @@ aCircleRadius = aSketchCircle.real("CircleRadius")
 anCircleCentr.setValue(0, 0)
 aCircleRadius.setValue(10)
 aSession.finishOperation()
+aSession.startOperation()
 anRevolutionSketchFt.selection("axis_object").setValue(aLineSketchResult, aLineEdge)
 anRevolutionSketchFt.string("CreationMethod").setValue("ByPlanesAndOffsets")
 anRevolutionSketchFt.real("to_angle").setValue(0) #TODO: remove
@@ -138,6 +141,7 @@ anRevolutionSketchFt.selection("from_object").setValue(aFromResult, aFromShape)
 anRevolutionSketchFt.real("from_offset").setValue(0)
 anRevolutionSketchFt.execute()
 aSession.finishOperation()
+aSession.finishOperation()
 
 #=========================================================================
 # Test results