From: mpv Date: Thu, 16 May 2019 13:13:08 +0000 (+0300) Subject: Issue #2530 fix and the unit test correction for this fix X-Git-Tag: VEDF2019Lot4~101^2~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=47f8c27cbdc49983c3df86c0024fbe0591489921;p=modules%2Fshaper.git Issue #2530 fix and the unit test correction for this fix --- diff --git a/src/ExchangePlugin/Test/TestExportToXAOWithFields.py b/src/ExchangePlugin/Test/TestExportToXAOWithFields.py index 61c7016dc..4d98301be 100644 --- a/src/ExchangePlugin/Test/TestExportToXAOWithFields.py +++ b/src/ExchangePlugin/Test/TestExportToXAOWithFields.py @@ -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()