]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update failed tests due to the stabilization fix (merge of selection list attributes...
authormpv <mpv@opencascade.com>
Mon, 4 Mar 2019 13:00:43 +0000 (16:00 +0300)
committermpv <mpv@opencascade.com>
Mon, 4 Mar 2019 13:00:43 +0000 (16:00 +0300)
src/CollectionPlugin/Test/TestGroupMove09.py
src/CollectionPlugin/Test/TestGroupMove19.py
src/FeaturesPlugin/Test/TestBooleanFuse_SolidsHistory.py

index f8b338348d980d8d10e97441e0533450670b660f..050ee48b5b7b95ec98cf5cbe39c61ac19d4576e7 100644 (file)
@@ -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
index dfb176f276ad0128940bcb35bd713b5f6641c557..7fb558fdfa3148b35d322710ab82ee91c81afe7e 100644 (file)
@@ -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())
index 7e000ab04eba185a4e523981bef4985e9bfc923c..0bc77e07c796be71e63c0b1cd643071de0f18cea 100644 (file)
@@ -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