From: azv Date: Fri, 7 Dec 2018 06:54:59 +0000 (+0300) Subject: Fix errors in TestFillet.py unit test X-Git-Tag: End2018~108 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=affa4c3abfb697975eeab8232ded0392c6336808;p=modules%2Fshaper.git Fix errors in TestFillet.py unit test --- diff --git a/src/FeaturesPlugin/Test/TestFillet.py b/src/FeaturesPlugin/Test/TestFillet.py index a641328bf..05d41e7c5 100644 --- a/src/FeaturesPlugin/Test/TestFillet.py +++ b/src/FeaturesPlugin/Test/TestFillet.py @@ -52,7 +52,7 @@ aSession.finishOperation() aSession.startOperation() aPoint = aPart.addFeature("Point") aPoint.string("creation_method").setValue("by_xyz") -geomDataAPI_Point(aFeature.attribute("point3d")).setValue(20, 5, 0) +geomDataAPI_Point(aPoint.attribute("point3d")).setValue(20, 5, 0) aSession.finishOperation() aSession.startOperation() @@ -71,7 +71,7 @@ aSession.startOperation() aFillet1 = aPart.addFeature("Fillet") aFillet1.string("creation_method").setValue("fixed_radius") anObjects = aFillet1.selectionList("main_objects") -anObjects.append("Box_1_1/Left&Box_1_1/Top", "edge") +anObjects.append("[Box_1_1/Left][Box_1_1/Top]", "edge") aFillet1.real("radius1").setValue(3) aSession.finishOperation() assert(aFillet1.error() == ""), "FAILED: Fillet reports error \"{}\"".format(aFillet1.error()) @@ -94,7 +94,7 @@ aFillet2 = aPart.addFeature("Fillet") aFillet2.string("creation_method").setValue("fixed_radius") anObjects = aFillet2.selectionList("main_objects") anObjects.append("Cylinder_1_1/Face_2", "face") -anObjects.append("_Box_1_1/Right", "face") +anObjects.append("Box_1_1/Right", "face") aFillet2.real("radius1").setValue(2) aSession.finishOperation() assert(aFillet2.error() != ""), "FAILED: Fillet does not report error"