Salome HOME
Added unit tests for selection of the whole feature in group for the task #3082 ...
[modules/shaper.git] / src / CollectionPlugin / Test / TestGroup2.py
index 87a266d0b4a46dcf39e3a471a26a6799c5d62a8d..0de56fd0b4a9594fec33ca92197ecb99cb8e5e33 100644 (file)
@@ -20,8 +20,6 @@
 # Test that splitted edges in the group are still correct edges in the group
 # Based on the CEA report mail 04.12.2018, page 4
 
-# -*- coding: utf-8 -*-
-
 from SketchAPI import *
 from ModelAPI import *
 from GeomAPI import *
@@ -75,16 +73,16 @@ model.do()
 Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_2")], model.selection(), 10, 0)
 AngularCopy_1 = model.addMultiRotation(Part_1_doc, [model.selection("COMPOUND", "all-in-Extrusion_1")], model.selection("EDGE", "PartSet/OZ"), "90.-r*3", 2)
 Cut_1 = model.addCut(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("COMPOUND", "AngularCopy_1_1")])
-Group_1 = model.addGroup(Part_1_doc, [model.selection("EDGE", "Face_1_1/Edge_4")])
+Group_1 = model.addGroup(Part_1_doc, [model.selection("EDGE", "Face_1_1/Modified_Edge&Sketch_1/SketchArc_1_2")])
 Group_1.setName("edge_int")
 Group_1.result().setName("edge_int")
-Group_2 = model.addGroup(Part_1_doc, [model.selection("EDGE", "Face_1_1/Edge_1")])
+Group_2 = model.addGroup(Part_1_doc, [model.selection("EDGE", "Face_1_1/Modified_Edge&Sketch_1/SketchLine_2")])
 Group_2.setName("edge_bottom")
 Group_2.result().setName("edge_bottom")
-Group_3 = model.addGroup(Part_1_doc, [model.selection("EDGE", "Face_1_1/Edge_3")])
+Group_3 = model.addGroup(Part_1_doc, [model.selection("EDGE", "Face_1_1/Modified_Edge&Sketch_1/SketchLine_1")])
 Group_3.setName("edge_left")
 Group_3.result().setName("edge_left")
-Group_4 = model.addGroup(Part_1_doc, [model.selection("EDGE", "Face_1_1/Edge_2")])
+Group_4 = model.addGroup(Part_1_doc, [model.selection("EDGE", "Face_1_1/Modified_Edge&Sketch_1/SketchArc_2_2")])
 Group_4.setName("edge_ext")
 Group_4.result().setName("edge_ext")
 model.do()