From: mpv Date: Tue, 30 Dec 2014 14:17:23 +0000 (+0300) Subject: Apply the first naming name test X-Git-Tag: V_0.7.0_rc1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=21b49daa12e8a869058f2cc2dd95dc87680fe6b1;p=modules%2Fshaper.git Apply the first naming name test --- diff --git a/src/FeaturesPlugin/Test/TestGroup.py b/src/FeaturesPlugin/Test/TestGroup.py index 62b98d473..bb446e26c 100644 --- a/src/FeaturesPlugin/Test/TestGroup.py +++ b/src/FeaturesPlugin/Test/TestGroup.py @@ -81,21 +81,15 @@ anExtrusionBody = modelAPI_ResultBody(anExtrusionFt.firstResult()) aSession.startOperation() aGroupFeature = aSession.activeDocument().addFeature("Group") aSelectionListAttr = aGroupFeature.selectionList("group_list") -aSelectionListAttr.clear() topAbs_EdgeType = 6 aSelectionListAttr.setSelectionType(topAbs_EdgeType) - -for anEdge in [aSketchLineA, aSketchLineB, aSketchLineC]: - anEdgeResult = anEdge.firstResult() - assert(anEdgeResult) - assert(anEdgeResult.shape()) - aSelectionListAttr.append(anEdgeResult, anEdgeResult.shape()) +aSelectionListAttr.append("Extrusion_1/LateralFace_3|Extrusion_1/LateralFace_1") aSession.finishOperation() #========================================================================= # Check results #========================================================================= aGroupResult = aGroupFeature.firstResult() -# assert(aGroupResult) +assert(aGroupResult) #========================================================================= # End of test #=========================================================================