]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix failures in unit-tests
authorazv <azv@opencascade.com>
Fri, 21 Sep 2018 08:00:17 +0000 (11:00 +0300)
committerazv <azv@opencascade.com>
Fri, 21 Sep 2018 09:29:17 +0000 (12:29 +0300)
src/PythonAPI/model/sketcher/tests.py
src/SketchPlugin/Test/TestConstraintVertical.py

index 4ddea3ca4aab6f6bee916173557850b42d885655..751f6cf0f606628cab1128602a262958bafecd29 100644 (file)
@@ -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)
 
 
index 3824ecdfa6f244b42ec3fb00b00eba3839479a2c..ec05f8dda2436930c1a5bf74bad596fd8707b849 100644 (file)
@@ -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)
 #=========================================================================