From: mpv Date: Mon, 4 Mar 2019 13:00:43 +0000 (+0300) Subject: Update failed tests due to the stabilization fix (merge of selection list attributes... X-Git-Tag: V9_3_0a2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d0469c1fdf8f1a447732d0d47dac5df31c322119;p=modules%2Fshaper.git Update failed tests due to the stabilization fix (merge of selection list attributes) just before --- diff --git a/src/CollectionPlugin/Test/TestGroupMove09.py b/src/CollectionPlugin/Test/TestGroupMove09.py index f8b338348..050ee48b5 100644 --- a/src/CollectionPlugin/Test/TestGroupMove09.py +++ b/src/CollectionPlugin/Test/TestGroupMove09.py @@ -60,7 +60,7 @@ assert(aFactory.validate(Group_1.feature())) # same-plane faces should be merged selectionList = Group_2.feature().selectionList("group_list") -assert(selectionList.size() == 11) +assert(selectionList.size() == 7) assert(aFactory.validate(Group_2.feature())) # shared edges of merged faces should be deleted diff --git a/src/CollectionPlugin/Test/TestGroupMove19.py b/src/CollectionPlugin/Test/TestGroupMove19.py index dfb176f27..7fb558fdf 100644 --- a/src/CollectionPlugin/Test/TestGroupMove19.py +++ b/src/CollectionPlugin/Test/TestGroupMove19.py @@ -73,7 +73,7 @@ Face_1 = model.addFace(Part_1_doc, Face_1_objects) model.do() model.end() -num_in_groups = [4, 8] +num_in_groups = [4, 4] moveGroupsAndVerify(Part_1_doc, Face_1.feature(), num_in_groups) assert(model.checkPythonDump()) diff --git a/src/FeaturesPlugin/Test/TestBooleanFuse_SolidsHistory.py b/src/FeaturesPlugin/Test/TestBooleanFuse_SolidsHistory.py index 7e000ab04..0bc77e07c 100644 --- a/src/FeaturesPlugin/Test/TestBooleanFuse_SolidsHistory.py +++ b/src/FeaturesPlugin/Test/TestBooleanFuse_SolidsHistory.py @@ -63,12 +63,12 @@ Part_1_doc.moveFeature(Group_1.feature(), Fuse_1.feature()) Part_1_doc.moveFeature(Group_2.feature(), Group_1.feature()) model.end() -# Check group 1: 3 solids +# All solids are merged to one - result aFactory = ModelAPI_Session.get().validators() selectionList = Group_1.feature().selectionList("group_list") -assert(selectionList.size() == 3) +assert(selectionList.size() == 1) assert(aFactory.validate(Group_1.feature())) -for i in range(3): +for i in range(1): assert(Group_1.groupList().value(i).value().shapeType() == GeomAPI_Shape.SOLID) # Check group 2: 3 faces