From: mpv Date: Thu, 18 Jan 2018 15:46:45 +0000 (+0300) Subject: Fix for the unit test: invalid sketch should not contain results X-Git-Tag: V_3.0.0RC1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ecf63e16685033bb30a71d207fcf0daf52089f26;p=modules%2Fshaper.git Fix for the unit test: invalid sketch should not contain results --- diff --git a/src/SketchPlugin/Test/TestFilletInteracting.py b/src/SketchPlugin/Test/TestFilletInteracting.py index 0b0de7d78..5026f5385 100644 --- a/src/SketchPlugin/Test/TestFilletInteracting.py +++ b/src/SketchPlugin/Test/TestFilletInteracting.py @@ -173,9 +173,10 @@ class TestFilletInteracting(unittest.TestCase): self.checkNbFeatures("SketchConstraintTangent", 0) # no tangencies should not be created self.checkNbFeatures("SketchFillet", 1) # fillet feature should still exist. it should be wrong - model.testNbSubShapes(self.mySketch, GeomAPI_Shape.FACE, [0]) - model.testNbSubShapes(self.mySketch, GeomAPI_Shape.EDGE, [2]) - model.testNbSubShapes(self.mySketch, GeomAPI_Shape.VERTEX, [4]) + # sketch is invalid, so, no results at all + model.testNbSubShapes(self.mySketch, GeomAPI_Shape.FACE, []) + model.testNbSubShapes(self.mySketch, GeomAPI_Shape.EDGE, []) + model.testNbSubShapes(self.mySketch, GeomAPI_Shape.VERTEX, []) # remove fillet for correct python dump self.myDocument.removeFeature(aFillet.feature())