Salome HOME
Updated copyright comment
[modules/shaper.git] / src / FeaturesPlugin / Test / TestFillet.py
index a641328bf4764a8f7f8b937b673cd251c4e3702a..957baed4c23d27e56abedae0d75743b781f42dce 100644 (file)
@@ -1,22 +1,21 @@
-## Copyright (C) 2017  CEA/DEN, EDF R&D
-##
-## This library is free software; you can redistribute it and/or
-## modify it under the terms of the GNU Lesser General Public
-## License as published by the Free Software Foundation; either
-## version 2.1 of the License, or (at your option) any later version.
-##
-## This library is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-## Lesser General Public License for more details.
-##
-## You should have received a copy of the GNU Lesser General Public
-## License along with this library; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-##
-## See http:##www.salome-platform.org/ or
-## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
-##
+# Copyright (C) 2017-2024  CEA, EDF
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
 
 """
       TestFillet.py
@@ -52,7 +51,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 +70,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 +93,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"