Salome HOME
Merge remote-tracking branch 'remotes/origin/CEA_2020_ImportSTEP'
[modules/shaper.git] / src / ExchangePlugin / Test / TestExportToXAOWithFields.py
index 61c7016dcb2828ffdadcffd2df3025d64868b132..3f37119ead9ebf4bffc4005ae21e5b01c566faa4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2018-2019  CEA/DEN, EDF R&D
+# Copyright (C) 2018-2020  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -44,6 +44,9 @@ Field_3 = model.addField(Part_1_doc, 1, "STRING", 1, ["Comp 1"], [model.selectio
 Field_3.addStep(0, 0, [[""], ["box"]])
 
 Export_1 = model.exportToXAO(Part_1_doc, tmp_file1)
-assert(Export_1.feature().error() == "")
-
+# due to the issue 2530, the export feature is removed after execution, so, if export was performed correctly,
+# the feature must become invalid
+#assert(Export_1.feature().error() == "")
+assert(not Export_1.feature().data().isValid())
+assert(os.path.isfile(tmp_file1))
 model.end()