From 21b49daa12e8a869058f2cc2dd95dc87680fe6b1 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 30 Dec 2014 17:17:23 +0300 Subject: [PATCH] Apply the first naming name test --- src/FeaturesPlugin/Test/TestGroup.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 #========================================================================= -- 2.39.2