]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ExchangePlugin/Test/TestImport.py
Salome HOME
Fix for the import XAO unit test
[modules/shaper.git] / src / ExchangePlugin / Test / TestImport.py
index 77ed65b21c7ab41428962af9687bf556b30126f8..6b986c2727f34761d3bcff1db69e884c7ed572e4 100644 (file)
@@ -33,7 +33,6 @@ def testImport(theType, theFile, theVolume, theDelta):
     file = anImportFeature.string(aFieldName)
     assert file, "{0}: Can not receive string field {1}".format(theType, aFieldName)
     file.setValue(theFile)
-    anImportFeature.execute()
     aSession.finishOperation()
 
     # Check results
@@ -59,7 +58,6 @@ def testImportXAO():
     aSession.startOperation("Import XAO")
     anImportFeature = aPart.addFeature("Import")
     anImportFeature.string("file_path").setValue("Data/test.xao")
-    anImportFeature.execute()
     aSession.finishOperation()
 
     # Check results
@@ -109,7 +107,7 @@ if __name__ == '__main__':
 #=========================================================================
 # Create a shape imported from XAO
 #=========================================================================
-    testImportXAO()
+    testImportXAO()
 #=========================================================================
 # End of test
 #=========================================================================