]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update unit tests according to updated the versioning mechanism of Boolean Operation.
authorazv <azv@opencascade.com>
Thu, 28 Nov 2019 07:33:04 +0000 (10:33 +0300)
committerazv <azv@opencascade.com>
Thu, 28 Nov 2019 07:33:04 +0000 (10:33 +0300)
src/FeaturesPlugin/Test/TestUnion4Faces.py
src/FeaturesPlugin/Test/TestUnionOfUnion.py

index a3772deae41d6fda4b9ff7a711ac4f6c888a24a2..593eec77c56934e087d049281f362bcc6e5ec466 100644 (file)
@@ -57,7 +57,7 @@ Face_2 = model.addFace(Part_1_doc, Face_2_objects)
 Partition_1_objects = [model.selection("FACE", "Face_2_1"), model.selection("FACE", "Face_1_1"), model.selection("FACE", "PartSet/YOZ")]
 Partition_1 = model.addPartition(Part_1_doc, Partition_1_objects)
 Union_1_objects = [model.selection("FACE", "Partition_1_1_1"), model.selection("FACE", "Partition_1_1_3"), model.selection("FACE", "Partition_1_1_4")]
-Union_1 = model.addFuse(Part_1_doc, Union_1_objects, True, 20190506)
+Union_1 = model.addFuse(Part_1_doc, Union_1_objects, True, keepSubResults = True)
 model.do()
 
 model.checkResult(Union_1,model,1,[2],[0],[2],[13],[26])
index 39ff6a3cde07c6386c0802cdd0db36e2e24e809b..e5b3bf643750cef749cd117ae0f5ba7c7d072fe7 100644 (file)
@@ -28,8 +28,8 @@ Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "Box_1_1/Left"), 5,
 Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "Box_1_1/Front"), 5, True)
 Partition_1_objects = [model.selection("FACE", "Plane_1"), model.selection("FACE", "Plane_2"), model.selection("SOLID", "Box_1_1")]
 Partition_1 = model.addPartition(Part_1_doc, Partition_1_objects)
-Union_1 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Partition_1_1_3"), model.selection("SOLID", "Partition_1_1_1")], False, 20190506)
-Union_2 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Fuse_1_1_2"), model.selection("SOLID", "Fuse_1_1_1")], False, 20190506)
+Union_1 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Partition_1_1_3"), model.selection("SOLID", "Partition_1_1_1")], False, keepSubResults = True)
+Union_2 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Fuse_1_1_2"), model.selection("SOLID", "Fuse_1_1_1")], False, keepSubResults = True)
 model.do()
 model.end()