From: spo Date: Mon, 6 Jun 2016 10:16:13 +0000 (+0300) Subject: Fix tests for PythonAPI for ConstructionAPI_Plane X-Git-Tag: V_2.4.0~91^2~83 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=22f09101d0c013e0f549255f91de921db1a1abe8;p=modules%2Fshaper.git Fix tests for PythonAPI for ConstructionAPI_Plane --- diff --git a/src/PythonAPI/Test/TestFeatures.py b/src/PythonAPI/Test/TestFeatures.py index 0915bad1f..8bede104d 100644 --- a/src/PythonAPI/Test/TestFeatures.py +++ b/src/PythonAPI/Test/TestFeatures.py @@ -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")) diff --git a/src/PythonAPI/model/construction/__init__.py b/src/PythonAPI/model/construction/__init__.py index 6a8bf7149..d1cfcdb9d 100644 --- a/src/PythonAPI/model/construction/__init__.py +++ b/src/PythonAPI/model/construction/__init__.py @@ -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