]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix errors in TestFillet.py unit test
authorazv <azv@opencascade.com>
Fri, 7 Dec 2018 06:54:59 +0000 (09:54 +0300)
committerazv <azv@opencascade.com>
Fri, 7 Dec 2018 06:55:33 +0000 (09:55 +0300)
src/FeaturesPlugin/Test/TestFillet.py

index a641328bf4764a8f7f8b937b673cd251c4e3702a..05d41e7c54a675ed57fa7093034eebcf07dbfbfd 100644 (file)
@@ -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"