]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ExchangePlugin/Test/TestExportToXAOWithFields.py
Salome HOME
updated copyright message
[modules/shaper.git] / src / ExchangePlugin / Test / TestExportToXAOWithFields.py
index 61c7016dcb2828ffdadcffd2df3025d64868b132..a59fec0146b6d5a2ca8468a8a44c85cad799cc2c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2018-2019  CEA/DEN, EDF R&D
+# Copyright (C) 2018-2023  CEA, EDF
 #
 # 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()