]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2376: update test case
authorazv <azv@opencascade.com>
Mon, 14 Jan 2019 07:22:56 +0000 (10:22 +0300)
committerazv <azv@opencascade.com>
Mon, 14 Jan 2019 07:22:56 +0000 (10:22 +0300)
src/SketchPlugin/CMakeLists.txt
src/SketchPlugin/Test/Test2376.py

index 4d399b188090ce51d567115fe91b4325d159a906..86fc7c4adc53c4963fc7f593d49f0eb982524365 100644 (file)
@@ -181,6 +181,7 @@ ADD_UNIT_TESTS(
   Test2280.py
   Test2287.py
   Test2341.py
+  Test2376.py
   Test2390.py
   Test2393.py
   Test2425.py
index 98fd0413c89eb00874f2785cfe4fe7964508e6fa..5a267396453a02b4e7fc50730bdf4b898381b342 100644 (file)
@@ -42,9 +42,7 @@ model.checkSketch(Sketch_1, SKETCH_DOF)
 # add one more distance constraint, DoF should be the same
 SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_2.result(), 25, True)
 model.do()
-model.checkSketch(Sketch_1, SKETCH_DOF)
-# TODO: following line should be uncommented when PlanGCS will be able to determine over-constraint in this case
-#assert Sketch_1.solverError().value() != "", "FAILED: Sketch should report over-constrained situation"
+assert Sketch_1.solverError().value() != "", "FAILED: Sketch should report over-constrained situation"
 
 # remove last constraint
 partSet.removeFeature(SketchConstraintDistance_2.feature())