From: dbv Date: Tue, 17 May 2016 07:26:20 +0000 (+0300) Subject: Test add_contour action in Wire feature X-Git-Tag: V_2.3.1~86 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=152025c5d68f2fd213406850b12a0e362e8fc9ef;p=modules%2Fshaper.git Test add_contour action in Wire feature --- diff --git a/src/BuildPlugin/Test/TestWire.py b/src/BuildPlugin/Test/TestWire.py index de75b080c..9b50b70ee 100644 --- a/src/BuildPlugin/Test/TestWire.py +++ b/src/BuildPlugin/Test/TestWire.py @@ -55,9 +55,9 @@ aSession.startOperation() aWireFeature = aPart.addFeature("Wire") aBaseObjectsList = aWireFeature.selectionList("base_objects") aShapeExplorer = GeomAPI_ShapeExplorer(aSketchShape, GeomAPI_Shape.EDGE) -while aShapeExplorer.more(): +if aShapeExplorer.more(): aBaseObjectsList.append(aSketchResult, aShapeExplorer.current()) - aShapeExplorer.next() +aWireFeature.customAction("add_contour") aSession.finishOperation() # Test results