From bd28067133321ee1fd4086d38fe62ccb391f7595 Mon Sep 17 00:00:00 2001 From: azv Date: Fri, 21 Sep 2018 11:00:17 +0300 Subject: [PATCH] Fix failures in unit-tests --- src/PythonAPI/model/sketcher/tests.py | 2 +- src/SketchPlugin/Test/TestConstraintVertical.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) #========================================================================= -- 2.39.2