From: azv Date: Fri, 21 Sep 2018 08:00:17 +0000 (+0300) Subject: Fix failures in unit-tests X-Git-Tag: V9_2_0a1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bd28067133321ee1fd4086d38fe62ccb391f7595;p=modules%2Fshaper.git Fix failures in unit-tests --- diff --git a/src/PythonAPI/model/sketcher/tests.py b/src/PythonAPI/model/sketcher/tests.py index 4ddea3ca4..751f6cf0f 100644 --- a/src/PythonAPI/model/sketcher/tests.py +++ b/src/PythonAPI/model/sketcher/tests.py @@ -99,7 +99,7 @@ def checkSketch(theSketch, theDOF = -1): assert(theSketch.feature().error() == ""), "Sketch failed: {}".format(theSketch.feature().error()) assert(theSketch.solverError().value() == ""), "Sketch solver failed: {}".format(theSketch.solverError().value()) if theDOF != -1: - aDOF = sketcher.tools.dof(theSketch) + aDOF = tools.dof(theSketch) assert(aDOF == theDOF), "Sketch DoF {} is wrong. Expected {}".format(aDOF, theDOF) diff --git a/src/SketchPlugin/Test/TestConstraintVertical.py b/src/SketchPlugin/Test/TestConstraintVertical.py index 3824ecdfa..ec05f8dda 100644 --- a/src/SketchPlugin/Test/TestConstraintVertical.py +++ b/src/SketchPlugin/Test/TestConstraintVertical.py @@ -60,7 +60,7 @@ aSketchLine = aSketchFeature.addFeature("SketchLine") aLineStartPoint = geomDataAPI_Point2D(aSketchLine.attribute("StartPoint")) aLineEndPoint = geomDataAPI_Point2D(aSketchLine.attribute("EndPoint")) aLineStartPoint.setValue(0., 15.) -aLineEndPoint.setValue(20., 25.) +aLineEndPoint.setValue(20., 30.) aSession.finishOperation() assert (model.dof(aSketchFeature) == 4) #=========================================================================