From 101e4eef8f12a3f6dd521358e2fd63b11b6148d7 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 6 Oct 2017 15:12:33 +0300 Subject: [PATCH] Correction of test due to the fix of issue #2266 --- src/SketchPlugin/Test/Test1673.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/SketchPlugin/Test/Test1673.py b/src/SketchPlugin/Test/Test1673.py index ea06d67c0..6eea668e5 100644 --- a/src/SketchPlugin/Test/Test1673.py +++ b/src/SketchPlugin/Test/Test1673.py @@ -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()) -- 2.39.2