From 47f8c27cbdc49983c3df86c0024fbe0591489921 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 16 May 2019 16:13:08 +0300 Subject: [PATCH] Issue #2530 fix and the unit test correction for this fix --- src/ExchangePlugin/Test/TestExportToXAOWithFields.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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() -- 2.39.2