From affa4c3abfb697975eeab8232ded0392c6336808 Mon Sep 17 00:00:00 2001 From: azv Date: Fri, 7 Dec 2018 09:54:59 +0300 Subject: [PATCH] Fix errors in TestFillet.py unit test --- src/FeaturesPlugin/Test/TestFillet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" -- 2.39.2