From 2214cba6992f2504967d1fc2f09cf57259739723 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 17 Jan 2018 09:36:26 +0300 Subject: [PATCH] Fix test cases --- src/ModelAPI/Test/Test2401.py | 2 +- test.models/plug.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ModelAPI/Test/Test2401.py b/src/ModelAPI/Test/Test2401.py index e65e74c42..abf10ad1e 100644 --- a/src/ModelAPI/Test/Test2401.py +++ b/src/ModelAPI/Test/Test2401.py @@ -76,7 +76,7 @@ SketchLine_8 = Sketch_1.addLine(0, 3, 8, 3) SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_8.startPoint()) SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_8.endPoint()) model.do() -Part_1_doc.setCurrentFeature(Boolean_1.feature()) +Part_1_doc.setCurrentFeature(Boolean_1.feature(), True) model.end() # check that the plane is located as previously diff --git a/test.models/plug.py b/test.models/plug.py index a1d9f63b7..59bbf1336 100644 --- a/test.models/plug.py +++ b/test.models/plug.py @@ -426,7 +426,7 @@ model.testNbSubShapes(Partition_1, GeomAPI_Shape.VERTEX, [1476]) model.testResultsVolumes(Partition_1, [28288.886256640704232268035411835]) Result = model.addRemoveSubShapes(Part_1_doc, model.selection("COMPSOLID", "Partition_1_1")) -Result.setSubShapesToRemove([model.selection("SOLID", "Partition_1_1_1")]) +Result.setSubShapesToRemove([model.selection("SOLID", "Partition_1_1_2")]) Result.result().setName("Plug") # check Remove_SubShapes_1 model.testNbResults(Result, 1) @@ -437,7 +437,7 @@ model.testNbSubShapes(Result, GeomAPI_Shape.EDGE, [366]) model.testNbSubShapes(Result, GeomAPI_Shape.VERTEX, [732]) model.testResultsVolumes(Result, [14144.443128843522572424262762070]) -Group_1 = model.addGroup(Part_1_doc, [model.selection("FACE", "Plug/Modified_Face_1_1"), model.selection("FACE", "Plug/Modified_Face_2_1"), model.selection("FACE", "Plug/Modified_Face_3_1"), model.selection("FACE", "Plug/Modified_Face_4_1")]) +Group_1 = model.addGroup(Part_1_doc, [model.selection("FACE", "Plug/Modified_Face_3_1"), model.selection("FACE", "Plug/Modified_Face_5_1"), model.selection("FACE", "Plug/Modified_Face_46_1"), model.selection("FACE", "Plug/Modified_Face_48_1")]) Group_1.result().setColor(68, 68, 68) # check Group_1 model.checkGroup(Group_1, GeomAPI_Shape.FACE) -- 2.39.2