From: azv Date: Tue, 6 Sep 2016 04:57:16 +0000 (+0300) Subject: Fix Split unit test X-Git-Tag: V_2.5.0~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3c3b5968f1e0e7790ed419bb2bedb6b25184e031;p=modules%2Fshaper.git Fix Split unit test --- diff --git a/src/SketchPlugin/Test/TestSplit.py b/src/SketchPlugin/Test/TestSplit.py index aa86ac400..36a03f97f 100644 --- a/src/SketchPlugin/Test/TestSplit.py +++ b/src/SketchPlugin/Test/TestSplit.py @@ -71,7 +71,7 @@ for index in range(Sketch_3_feature.numberOfSubs()): assert(idList.count(SketchArcId) == 2) assert(idList.count(SketchPointId) == 2) -assert(idList.count(SketchConstraintCoincidenceId) == 2) +assert(idList.count(SketchConstraintCoincidenceId) == 4) assert(idList.count(SketchConstraintTangentId) == 1) # Test end @@ -100,8 +100,7 @@ assert(idList.count(SketchConstraintTangentId) == 1) # Test split on arc with two points Sketch_5 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) -#SketchArc_5_1 = Sketch_5.addArc(50, 50, 6.69872981078, 75, 93.30127018922, 75, True) -SketchArc_5_1 = Sketch_5.addArc(50, 50, 0, 50, 93.30127018922, 75, True) +SketchArc_5_1 = Sketch_5.addArc(50, 50, 93.30127018922, 75, 0, 50, False) Sketch_5.setFixed(SketchArc_5_1.startPoint()) Sketch_5.setFixed(SketchArc_5_1.endPoint()) Sketch_5.setRadius(SketchArc_5_1, 50) @@ -127,4 +126,4 @@ assert(idList.count(SketchConstraintTangentId) == 2) model.end() -#assert(model.checkPythonDump()) +assert(model.checkPythonDump())