X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FFeaturesPlugin%2FTest%2FTestPartition_MultiLevelCompound_v20190506_1.py;h=2564ce46a8da5c8d3807bf1346d61ba325fa52ad;hb=08687859554775951d8d087978299de4bba04a88;hp=de14905ba9c2693df8dc5c30189b3bf4989109aa;hpb=e52046c2942999e333fcf3bfc40313ec446fbb33;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/Test/TestPartition_MultiLevelCompound_v20190506_1.py b/src/FeaturesPlugin/Test/TestPartition_MultiLevelCompound_v20190506_1.py index de14905ba..2564ce46a 100644 --- a/src/FeaturesPlugin/Test/TestPartition_MultiLevelCompound_v20190506_1.py +++ b/src/FeaturesPlugin/Test/TestPartition_MultiLevelCompound_v20190506_1.py @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# Copyright (C) 2014-2022 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -77,7 +77,7 @@ Compound_1.result().subResult(0).subResult(0).setColor(0, 170, 0) Compound_1.result().subResult(0).subResult(1).setColor(0, 170, 0) Compound_1.result().subResult(1).subResult(0).setColor(0, 255, 0) Compound_1.result().subResult(1).subResult(1).setColor(0, 255, 0) -Partition_1 = model.addPartition(Part_1_doc, [model.selection("SOLID", "LinearCopy_2_1_1_1"), model.selection("COMPOUND", "Compound_1_1_2")], 20190506) +Partition_1 = model.addPartition(Part_1_doc, [model.selection("SOLID", "LinearCopy_2_1_1_1"), model.selection("COMPOUND", "Compound_1_1_2")], keepSubResults = True) model.testHaveNamingSubshapes(Partition_1, model, Part_1_doc) @@ -86,7 +86,7 @@ model.end() from GeomAPI import GeomAPI_Shape model.testNbResults(Partition_1, 1) -model.testNbSubResults(Partition_1, [4]) +model.testNbSubResults(Partition_1, [3]) model.testNbSubShapes(Partition_1, GeomAPI_Shape.SOLID, [15]) model.testNbSubShapes(Partition_1, GeomAPI_Shape.FACE, [98]) model.testNbSubShapes(Partition_1, GeomAPI_Shape.EDGE, [394])