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~136 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f20e9481c569a6f4fb43b8babd8e72c88a38b6b;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()