From: spo Date: Thu, 23 Jun 2016 06:40:10 +0000 (+0300) Subject: Fix tests fot ExchangePlugin X-Git-Tag: V_2.4.0~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5fd9c62cf47f0bb3ef1de7666b4ac911d3eccf95;p=modules%2Fshaper.git Fix tests fot ExchangePlugin --- diff --git a/src/ExchangeAPI/Test/TestExchange.py b/src/ExchangeAPI/Test/TestExchange.py index 0e73c2dcf..681688fa1 100644 --- a/src/ExchangeAPI/Test/TestExchange.py +++ b/src/ExchangeAPI/Test/TestExchange.py @@ -19,7 +19,7 @@ class ExchangeTestCase(unittest.TestCase): def test_addExport(self): self.session.startOperation() - self.feature = ExchangeAPI.exportToFile(self.doc, "file_path", "file_format", []) + self.feature = ExchangeAPI.exportToFile(self.doc, "file_path", [], "file_format") self.session.finishOperation() if __name__ == "__main__": diff --git a/src/ExchangePlugin/Test/TestExport.py b/src/ExchangePlugin/Test/TestExport.py index 554ee8066..2f8d4144b 100644 --- a/src/ExchangePlugin/Test/TestExport.py +++ b/src/ExchangePlugin/Test/TestExport.py @@ -9,9 +9,6 @@ import os import math from ModelAPI import * -from GeomDataAPI import * -from GeomAlgoAPI import * -from GeomAPI import * from TestImport import testImport diff --git a/src/ExchangePlugin/Test/TestImport.py b/src/ExchangePlugin/Test/TestImport.py index 6b986c272..5a07ad66a 100644 --- a/src/ExchangePlugin/Test/TestImport.py +++ b/src/ExchangePlugin/Test/TestImport.py @@ -6,10 +6,7 @@ # Initialization of the test #========================================================================= from ModelAPI import * -from GeomDataAPI import * from GeomAlgoAPI import * -from GeomAPI import * -import os import math __updated__ = "2015-05-22" @@ -73,8 +70,8 @@ def testImportXAO(): assert aFeature1.getKind() == "Group" assert aFeature1.name() == "boite_1" - aSelectionList = aFeature1.selectionList("group_list") - assert aSelectionList.selectionType() == "Solids" + aSelectionList = aFeature1.selectionList("group_list") + assert aSelectionList.selectionType() == "solid" assert aSelectionList.size() == 1 assert aSelectionList.value(0).namingName("") == "mygeom_1_1" @@ -83,7 +80,7 @@ def testImportXAO(): assert aFeature2.name() == "Group_2" aSelectionList = aFeature2.selectionList("group_list") - assert aSelectionList.selectionType() == "Faces" + assert aSelectionList.selectionType() == "face" assert aSelectionList.size() == 2 assert aSelectionList.value(0).namingName("") == "mygeom_1/Shape1_1" assert aSelectionList.value(1).namingName("") == "mygeom_1/Shape2_1" diff --git a/src/ExchangePlugin/plugin-Exchange.xml b/src/ExchangePlugin/plugin-Exchange.xml index 9555ff2ee..eeafa5b95 100755 --- a/src/ExchangePlugin/plugin-Exchange.xml +++ b/src/ExchangePlugin/plugin-Exchange.xml @@ -5,7 +5,7 @@ - + diff --git a/src/PythonAPI/Test/TestFeatures.py b/src/PythonAPI/Test/TestFeatures.py index f4ef8e423..d991e3e13 100644 --- a/src/PythonAPI/Test/TestFeatures.py +++ b/src/PythonAPI/Test/TestFeatures.py @@ -59,7 +59,6 @@ class FeaturesTestCase(FeaturesFixture): import ExchangeAPI ExchangeAPI.ExchangeAPI_Import(self.part.addFeature("Import")) - ExchangeAPI.ExchangeAPI_Export(self.part.addFeature("Export")) import FeaturesAPI FeaturesAPI.FeaturesAPI_Boolean(self.part.addFeature("Boolean"))