]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix the test because path-objects of pipe can not be reused anymore (issue #18352)
authormpv <mpv@opencascade.com>
Tue, 26 Nov 2019 13:58:15 +0000 (16:58 +0300)
committermpv <mpv@opencascade.com>
Tue, 26 Nov 2019 13:58:26 +0000 (16:58 +0300)
src/FeaturesPlugin/Test/TestPipe.py

index e0718b88893a348c31adf9b6f2faf1bf5a3c7eeb..fa9939162b5815330e89904ce2c34ca88ee33479 100644 (file)
@@ -127,15 +127,16 @@ aBaseObject = aRecover.reference("base_feature")
 aBaseObject.setValue(aPipeFeature)
 aRecoveredObjects = aRecover.reflist("recovered")
 aRecoveredObjects.append(aFaceResult1)
+aRecoveredObjects.append(aWireResult)
 aSession.finishOperation()
 
 # Create pipe with bi-normal
 aSession.startOperation()
 aPipeFeature = aPart.addFeature("Pipe")
 aBaseObjectsList = aPipeFeature.selectionList("base_objects")
-aBaseObjectsList.append(aRecover.firstResult(), None)
+aBaseObjectsList.append(aRecover.lastResult(), None)
 aPathObjectSelection = aPipeFeature.selection("path_object")
-aPathObjectSelection.setValue(aWireResult, None)
+aPathObjectSelection.setValue(aRecover.firstResult(), None)
 aPipeFeature.string("creation_method").setValue("binormal")
 aBinormalObjectSelection = aPipeFeature.selection("binormal")
 aShapeExplorer = GeomAPI_ShapeExplorer(aSketchShape, GeomAPI_Shape.EDGE)
@@ -153,6 +154,7 @@ aBaseObject = aRecover2.reference("base_feature")
 aBaseObject.setValue(aPipeFeature)
 aRecoveredObjects = aRecover2.reflist("recovered")
 aRecoveredObjects.append(aRecover.firstResult())
+aRecoveredObjects.append(aRecover.lastResult())
 aSession.finishOperation()
 
 # Create pipe with locations
@@ -193,7 +195,7 @@ aBaseObjectsList = aPipeFeature.selectionList("base_objects")
 aBaseObjectsList.append(aRecover2.firstResult(), None)
 aBaseObjectsList.append(aFaceResult2, None)
 aPathObjectSelection = aPipeFeature.selection("path_object")
-aPathObjectSelection.setValue(aWireResult, None)
+aPathObjectSelection.setValue(aRecover2.lastResult(), None)
 aPipeFeature.string("creation_method").setValue("locations")
 aSession.finishOperation()