Salome HOME
Fix for the unit test: invalid sketch should not contain results
authormpv <mpv@opencascade.com>
Thu, 18 Jan 2018 15:46:45 +0000 (18:46 +0300)
committermpv <mpv@opencascade.com>
Thu, 18 Jan 2018 15:46:45 +0000 (18:46 +0300)
src/SketchPlugin/Test/TestFilletInteracting.py

index 0b0de7d7845d4fcb7b5b46d0aee88ea1e796ec28..5026f5385824b3271a90affc8d1562f26c428a74 100644 (file)
@@ -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())