]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix tests for PythonAPI for ConstructionAPI_Plane
authorspo <sergey.pokhodenko@opencascade.com>
Mon, 6 Jun 2016 10:16:13 +0000 (13:16 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 17 Jun 2016 11:41:03 +0000 (14:41 +0300)
src/PythonAPI/Test/TestFeatures.py
src/PythonAPI/model/construction/__init__.py

index 0915bad1fe3d749d15079a9c0053631bd1911c9a..8bede104dbe51ca39974d373b45f971ad6fb6990 100644 (file)
@@ -28,9 +28,9 @@ class FeaturesTestCase(FeaturesFixture):
     def test_assert_error_on_empty_args(self):
         features = [
             # Implemented in C++, add* without arguments doesn't exist
-            # "addPoint",
+            # "addPoint", "addPlane",
 
-            "addAxis", "addPlane",
+            "addAxis",
             "addImport", "exportToFile",
             "addAddition", "addSubtraction", "addIntersection",
             "addExtrusion",
@@ -54,7 +54,7 @@ class FeaturesTestCase(FeaturesFixture):
     def test_initialize_without_attributes(self):
         import ConstructionAPI
         model.construction.axis.Axis(self.part.addFeature("Axis"))
-        model.construction.plane.Plane(self.part.addFeature("Plane"))
+        ConstructionAPI.ConstructionAPI_Plane(self.part.addFeature("Plane"))
         ConstructionAPI.ConstructionAPI_Point(self.part.addFeature("Point"))
 
         model.exchange.Import(self.part.addFeature("Import"))
index 6a8bf714998c3dd4ddaf719cdb7e1dc0fb2ce3d8..d1cfcdb9d9e0fbad9a96d3b46abdc0dc43b24bdc 100644 (file)
@@ -1,6 +1,6 @@
 """Package for Construction plugin for the Parametric Geometry API of the Modeler.
 """
 
-from ConstructionAPI import addPoint
 from axis import addAxis
-from plane import addPlane
+from ConstructionAPI import addPlane
+from ConstructionAPI import addPoint