X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FTest%2FTestCopyMoveResult.py;h=1423c0c669426af41503006cf71cdd0a5d85f761;hb=refs%2Fheads%2FV9_11_BR;hp=bde1d85c1fbc9c4ff62418388904e0923b03ec90;hpb=64f61525459c3d1912057046a8757943ec12ff3c;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/Test/TestCopyMoveResult.py b/src/FeaturesPlugin/Test/TestCopyMoveResult.py index bde1d85c1..1423c0c66 100644 --- a/src/FeaturesPlugin/Test/TestCopyMoveResult.py +++ b/src/FeaturesPlugin/Test/TestCopyMoveResult.py @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# Copyright (C) 2014-2023 CEA, EDF # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -48,7 +48,7 @@ Extrusion_1.result().setName("Origin") Group_1 = model.addGroup(Part_1_doc, "Solids", [model.selection("SOLID", "Extrusion_1_1_1")]) Copy_1 = model.addCopy(Part_1_doc, [model.selection("COMPSOLID", "Origin")], 1) Copy_1.result().setName("Origin_1") -Fillet_1 = model.addFillet(Part_1_doc, [model.selection("EDGE", "[Origin_1_1/Copy_3][Origin_1_1/Copy_7]"), model.selection("EDGE", "[Origin_1_1/Copy_12][Origin_1_1/Copy_14]")], 2) +Fillet_1 = model.addFillet(Part_1_doc, [model.selection("EDGE", "[Origin_1_1/Copy_2][Origin_1_1/Copy_6]"), model.selection("EDGE", "[Origin_1_2/Copy_4][Origin_1_2/Copy_6]")], 2) Fillet_1.result().setName("CopyCompound") model.do() # move the group feature to the end - through copy and fillet on this copy (to distinguish the origin and the copy) @@ -59,8 +59,9 @@ from ModelAPI import * aFactory = ModelAPI_Session.get().validators() assert(aFactory.validate(Group_1.feature())) selectionList = Group_1.feature().selectionList("group_list") -assert(selectionList.size() == 1) # still the same solid +assert(selectionList.size() == 2) # still the same solid + the copied and filleted -assert(selectionList.value(0).namingName() == "Fillet_1_1_1") +assert(selectionList.value(0).namingName() == "Extrusion_1_1_1") +assert(selectionList.value(1).namingName() == "Fillet_1_1_1") assert(model.checkPythonDump())