]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Improve code coverage for GeomValidators package
authorazv <azv@opencascade.com>
Wed, 13 Mar 2019 08:13:42 +0000 (11:13 +0300)
committerazv <azv@opencascade.com>
Wed, 13 Mar 2019 08:14:15 +0000 (11:14 +0300)
src/FeaturesPlugin/Test/TestBooleanCut_ErrorMsg.py

index 65a5a9e69d21c5b3933194ade3a2f9a8622d09f3..be07111e68e09cd7031ca8cacc11b8c61a5a50b4 100644 (file)
@@ -33,3 +33,18 @@ Cut_1 = aPart.addFeature("Cut")
 Cut_1.execute()
 assert(Cut_1.error() != "")
 aSession.finishOperation()
+
+
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Sketch_2 = model.addSketch(Part_1_doc, model.defaultPlane("XOY"))
+SketchLine_1 = Sketch_2.addLine(-30, -30, 0, 10)
+model.do()
+Cut_1 = model.addCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_1")], [model.selection("SOLID", "")])
+model.do()
+assert(Cut_1.feature().error() != "")
+model.end()