From 880d371be5b05fb2a5508e05c7cc1a84702a095c Mon Sep 17 00:00:00 2001 From: spo Date: Tue, 7 Jun 2016 12:03:17 +0300 Subject: [PATCH] Fix PythonAPI tests for ExchangeAPI --- src/PythonAPI/Test/TestFeatures.py | 7 ++++--- src/PythonAPI/model/exchange/__init__.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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 -- 2.39.2