]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Tests update
authordbv <dbv@opencascade.com>
Mon, 14 Sep 2015 09:15:01 +0000 (12:15 +0300)
committerdbv <dbv@opencascade.com>
Mon, 14 Sep 2015 09:15:01 +0000 (12:15 +0300)
src/FeaturesPlugin/Test/TestExtrusionCut.py
src/FeaturesPlugin/Test/TestExtrusionFuse.py
src/FeaturesPlugin/Test/TestExtrusionSketch.py
src/FeaturesPlugin/Test/TestRevolutionCut.py
src/FeaturesPlugin/Test/TestRevolutionFuse.py
src/FeaturesPlugin/Test/TestRevolutionSketch.py

index 9c17d56d0f605ab45c8456b411d4e2ff9fe9c691..5a4d6ca53601d03cc64f70f64406efeecc8a5bea 100644 (file)
@@ -121,6 +121,7 @@ aCircleRadius = aSketchCircle.real("CircleRadius")
 anCircleCentr.setValue(0, 0)
 aCircleRadius.setValue(10)
 aSession.finishOperation()
+aSession.startOperation()
 anExtrusionCutFt.string("CreationMethod").setValue("BySizes")
 anExtrusionCutFt.real("to_size").setValue(10)
 anExtrusionCutFt.real("from_size").setValue(10)
@@ -129,6 +130,7 @@ anExtrusionCutFt.real("from_offset").setValue(0) #TODO: remove
 anExtrusionCutFt.selectionList("boolean_objects").append(anExtrusionResult, anExtrusionResult.shape())
 anExtrusionCutFt.execute()
 aSession.finishOperation()
+aSession.finishOperation()
 
 #=========================================================================
 # Test results
index 29e778c3cc2f14522f7299dd7bbf58571e527842..a926bb863df6e5c6c323a5e0e617fda318e357a7 100644 (file)
@@ -121,6 +121,7 @@ aCircleRadius = aSketchCircle.real("CircleRadius")
 anCircleCentr.setValue(0, 0)
 aCircleRadius.setValue(10)
 aSession.finishOperation()
+aSession.startOperation()
 anExtrusionFuseFt.string("CreationMethod").setValue("BySizes")
 anExtrusionFuseFt.real("to_size").setValue(10)
 anExtrusionFuseFt.real("from_size").setValue(10)
@@ -129,6 +130,7 @@ anExtrusionFuseFt.real("from_offset").setValue(0) #TODO: remove
 anExtrusionFuseFt.selectionList("boolean_objects").append(anExtrusionResult, anExtrusionResult.shape())
 anExtrusionFuseFt.execute()
 aSession.finishOperation()
+aSession.finishOperation()
 
 #=========================================================================
 # Test results
index 0b80dcdba63cba8cbb9263f8ed5608c0e1647a55..9f5aae8fb1aab2e882b5068d6a5205d93c3465fd 100644 (file)
@@ -38,6 +38,7 @@ aCircleRadius = aSketchCircle.real("CircleRadius")
 anCircleCentr.setValue(0, 0)
 aCircleRadius.setValue(10)
 aSession.finishOperation()
+aSession.startOperation()
 anExtrusionSketchFt.string("CreationMethod").setValue("BySizes")
 anExtrusionSketchFt.real("to_size").setValue(10)
 anExtrusionSketchFt.real("from_size").setValue(10)
@@ -45,6 +46,7 @@ anExtrusionSketchFt.real("to_offset").setValue(0) #TODO: remove
 anExtrusionSketchFt.real("from_offset").setValue(0) #TODO: remove
 anExtrusionSketchFt.execute()
 aSession.finishOperation()
+aSession.finishOperation()
 
 #=========================================================================
 # Test results
@@ -102,6 +104,7 @@ aCircleRadius = aSketchCircle.real("CircleRadius")
 anCircleCentr.setValue(0, 0)
 aCircleRadius.setValue(10)
 aSession.finishOperation()
+aSession.startOperation()
 anExtrusionSketchFt.string("CreationMethod").setValue("ByPlanesAndOffsets")
 anExtrusionSketchFt.real("to_size").setValue(0) #TODO: remove
 anExtrusionSketchFt.real("from_size").setValue(0) #TODO: remove
@@ -111,6 +114,7 @@ anExtrusionSketchFt.selection("from_object").setValue(aFromResult, aFromShape)
 anExtrusionSketchFt.real("from_offset").setValue(0)
 anExtrusionSketchFt.execute()
 aSession.finishOperation()
+aSession.finishOperation()
 
 #=========================================================================
 # Test results
index 8229b15b45eb0b9b581f72434cf5dbdd029176d1..bbbdd2123edf25f8f5139116d34cca812f14a68b 100644 (file)
@@ -149,6 +149,7 @@ aCircleRadius = aSketchCircle.real("CircleRadius")
 anCircleCentr.setValue(0, 0)
 aCircleRadius.setValue(10)
 aSession.finishOperation()
+aSession.startOperation()
 anRevolutionCutFt.selection("axis_object").setValue(aLineSketchResult, aLineEdge)
 anRevolutionCutFt.string("CreationMethod").setValue("ByAngles")
 anRevolutionCutFt.real("to_angle").setValue(50)
@@ -158,6 +159,7 @@ anRevolutionCutFt.real("from_offset").setValue(0) #TODO: remove
 anRevolutionCutFt.selectionList("boolean_objects").append(anExtrusionResult, anExtrusionResult.shape())
 anRevolutionCutFt.execute()
 aSession.finishOperation()
+aSession.finishOperation()
 
 #=========================================================================
 # Test results
index d15735d2d9503eb98e13423c4a6f95a96bc377d6..3a9e3e72857a743bed1db0d3e97b51f8bf9b07d4 100644 (file)
@@ -149,6 +149,7 @@ aCircleRadius = aSketchCircle.real("CircleRadius")
 anCircleCentr.setValue(0, 0)
 aCircleRadius.setValue(10)
 aSession.finishOperation()
+aSession.startOperation()
 anRevolutionFuseFt.selection("axis_object").setValue(aLineSketchResult, aLineEdge)
 anRevolutionFuseFt.string("CreationMethod").setValue("ByAngles")
 anRevolutionFuseFt.real("to_angle").setValue(50)
@@ -158,6 +159,7 @@ anRevolutionFuseFt.real("from_offset").setValue(0) #TODO: remove
 anRevolutionFuseFt.selectionList("boolean_objects").append(anExtrusionResult, anExtrusionResult.shape())
 anRevolutionFuseFt.execute()
 aSession.finishOperation()
+aSession.finishOperation()
 
 #=========================================================================
 # Test results
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