]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix PythonAPI tests for ExchangeAPI
authorspo <sergey.pokhodenko@opencascade.com>
Tue, 7 Jun 2016 09:03:17 +0000 (12:03 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 17 Jun 2016 11:41:04 +0000 (14:41 +0300)
src/PythonAPI/Test/TestFeatures.py
src/PythonAPI/model/exchange/__init__.py

index 8bede104dbe51ca39974d373b45f971ad6fb6990..d749018ca9b1ddadf6485e3da94ddea93dc968fc 100644 (file)
@@ -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"))
index 71b17bbea16420baad12ce0a43669aad8b214e02..af7cc78c4559fc3d06068a6f85b186c8125dc102 100644 (file)
@@ -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