]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correction of test due to the fix of issue #2266
authormpv <mpv@opencascade.com>
Fri, 6 Oct 2017 12:12:33 +0000 (15:12 +0300)
committermpv <mpv@opencascade.com>
Fri, 6 Oct 2017 12:12:33 +0000 (15:12 +0300)
src/SketchPlugin/Test/Test1673.py

index ea06d67c0377b86e7a94476c63429f9bc20f815b..6eea668e511d6ac943fb621b1380040e76e9829f 100644 (file)
@@ -253,8 +253,11 @@ expectedTime = MOVE_BUILD_RATIO * sketchTime
 averageTime = 0
 nbMoves = 0
 
-# Sketch is overconstrained, check the message
-assert Sketch_1.solverError().value() != "", "FAILED: Sketch should report over-constrained situation"
+# Two vertical constraints: due to #1889 the sketch is invalid now, not overconstrained
+from ModelAPI import *
+aFactory = ModelAPI_Session.get().validators()
+assert(not aFactory.validate(SketchConstraintVertical_10.feature()))
+#assert Sketch_1.solverError().value() != "", "FAILED: Sketch should report over-constrained situation"
 
 # Remove duplicated Vertical constraints
 Part_1_doc.removeFeature(SketchConstraintVertical_10.feature())