From: spo Date: Tue, 7 Jun 2016 09:03:17 +0000 (+0300) Subject: Fix PythonAPI tests for ExchangeAPI X-Git-Tag: V_2.4.0~91^2~77 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=880d371be5b05fb2a5508e05c7cc1a84702a095c;p=modules%2Fshaper.git Fix PythonAPI tests for ExchangeAPI --- diff --git a/src/PythonAPI/Test/TestFeatures.py b/src/PythonAPI/Test/TestFeatures.py index 8bede104d..d749018ca 100644 --- a/src/PythonAPI/Test/TestFeatures.py +++ b/src/PythonAPI/Test/TestFeatures.py @@ -29,9 +29,9 @@ class FeaturesTestCase(FeaturesFixture): features = [ # Implemented in C++, add* without arguments doesn't exist # "addPoint", "addPlane", + # "addImport", "exportToFile", "addAxis", - "addImport", "exportToFile", "addAddition", "addSubtraction", "addIntersection", "addExtrusion", # "addExtrusionCut", "addExtrusionFuse", @@ -57,8 +57,9 @@ class FeaturesTestCase(FeaturesFixture): ConstructionAPI.ConstructionAPI_Plane(self.part.addFeature("Plane")) ConstructionAPI.ConstructionAPI_Point(self.part.addFeature("Point")) - model.exchange.Import(self.part.addFeature("Import")) - model.exchange.Export(self.part.addFeature("Export")) + import ExchangeAPI + ExchangeAPI.ExchangeAPI_Import(self.part.addFeature("Import")) + ExchangeAPI.ExchangeAPI_Export(self.part.addFeature("Export")) model.features.boolean.Boolean(self.part.addFeature("Boolean")) model.features.extrusion.Extrusion(self.part.addFeature("Extrusion")) diff --git a/src/PythonAPI/model/exchange/__init__.py b/src/PythonAPI/model/exchange/__init__.py index 71b17bbea..af7cc78c4 100644 --- a/src/PythonAPI/model/exchange/__init__.py +++ b/src/PythonAPI/model/exchange/__init__.py @@ -1,4 +1,4 @@ """Package for Exchange plugin for the Parametric Geometry API of the Modeler. """ -from exchange import addImport, exportToFile \ No newline at end of file +from ExchangeAPI import addImport, exportToFile \ No newline at end of file