]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PythonAPI/Test/TestFeatures.py
Salome HOME
Test ConstructionAPI_Point by old PythonAPI tests
[modules/shaper.git] / src / PythonAPI / Test / TestFeatures.py
index 6d553d0cd1b54a4bb0949ff929915625948f1bcb..87042f9be14fd88fe016f14f98ac0b3b8bd998dc 100644 (file)
@@ -27,7 +27,10 @@ class FeaturesTestCase(FeaturesFixture):
 
     def test_assert_error_on_empty_args(self):
         features = [
-            "addPoint", "addAxis", "addPlane",
+            # Implemented in C++, add* without arguments doesn't exist
+            # "addPoint",
+
+            "addAxis", "addPlane",
             "addImport", "exportToFile",
             "addAddition", "addSubtraction", "addIntersection",
             "addExtrusion",
@@ -46,9 +49,10 @@ class FeaturesTestCase(FeaturesFixture):
                 self.fail("%s does not check empty args" % name)
 
     def test_initialize_without_attributes(self):
+        import ConstructionAPI
         model.construction.axis.Axis(self.part.addFeature("Axis"))
         model.construction.plane.Plane(self.part.addFeature("Plane"))
-        model.construction.point.Point(self.part.addFeature("Point"))
+        ConstructionAPI.ConstructionAPI_Point(self.part.addFeature("Point"))
 
         model.exchange.Import(self.part.addFeature("Import"))
         model.exchange.Export(self.part.addFeature("Export"))