]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2530 fix and the unit test correction for this fix
authormpv <mikhail.ponikarov@opencascade.com>
Thu, 16 May 2019 13:13:08 +0000 (16:13 +0300)
committervsv <vsv@opencascade.com>
Mon, 3 Jun 2019 10:32:07 +0000 (13:32 +0300)
src/ExchangePlugin/Test/TestExportToXAOWithFields.py

index 61c7016dcb2828ffdadcffd2df3025d64868b132..4d98301be3736a1e19c0751ea607deedc682ceb8 100644 (file)
@@ -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()