From cd246df563d6e1893fe436fc8e66e1d042bf68b9 Mon Sep 17 00:00:00 2001 From: esy Date: Mon, 8 Nov 2021 17:08:11 +0100 Subject: [PATCH] Try to use a different result file name for each ExchangePlugin test --- src/ExchangePlugin/Test/TestExportPart_Failure_1.py | 2 +- src/ExchangePlugin/Test/TestExportPart_Failure_2.py | 2 +- src/ExchangePlugin/Test/TestExportPart_Failure_3.py | 2 +- src/ExchangePlugin/Test/TestExportPart_FullPartSet.py | 2 +- src/ExchangePlugin/Test/TestExportPart_FullPart_1.py | 2 +- src/ExchangePlugin/Test/TestExportPart_FullPart_2.py | 2 +- src/ExchangePlugin/Test/TestExportPart_PartSet.py | 2 +- src/ExchangePlugin/Test/TestExportPart_Results_1.py | 2 +- src/ExchangePlugin/Test/TestExportPart_Results_2.py | 2 +- src/ExchangePlugin/Test/TestExportPart_Results_3.py | 2 +- src/ExchangePlugin/Test/TestExportPart_Results_4.py | 2 +- src/ExchangePlugin/Test/TestExportPart_Results_5.py | 2 +- src/ExchangePlugin/Test/TestExportPart_Results_6.py | 2 +- src/ExchangePlugin/Test/TestExportPart_Results_7.py | 2 +- src/ExchangePlugin/Test/TestExportPart_Results_8.py | 2 +- src/ExchangePlugin/Test/TestImportPart_AfterCurrent_1.py | 2 +- src/ExchangePlugin/Test/TestImportPart_AfterCurrent_2.py | 2 +- src/ExchangePlugin/Test/TestImportPart_AfterLast_1.py | 2 +- src/ExchangePlugin/Test/TestImportPart_AfterLast_2.py | 2 +- src/ExchangePlugin/Test/TestImportPart_AfterLast_3.py | 2 +- src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py | 2 +- src/ExchangePlugin/Test/TestImportPart_AfterLast_5.py | 2 +- src/ExchangePlugin/Test/TestImportPart_AfterLast_6.py | 2 +- src/ExchangePlugin/Test/TestImportPart_Construction_1.py | 2 +- src/ExchangePlugin/Test/TestImportPart_Construction_2.py | 2 +- src/ExchangePlugin/Test/TestImportPart_Construction_3.py | 2 +- src/ExchangePlugin/Test/TestImportPart_Construction_4.py | 2 +- src/ExchangePlugin/Test/TestImportPart_Multiple.py | 2 +- src/ExchangePlugin/Test/TestImportPart_ToEmptyPart.py | 2 +- src/ExchangePlugin/Test/TestImportPart_ToEmptyPartSet.py | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/ExchangePlugin/Test/TestExportPart_Failure_1.py b/src/ExchangePlugin/Test/TestExportPart_Failure_1.py index ce36e4026..5144e5969 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Failure_1.py +++ b/src/ExchangePlugin/Test/TestExportPart_Failure_1.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart29' model.removeFile(filename) model.begin() diff --git a/src/ExchangePlugin/Test/TestExportPart_Failure_2.py b/src/ExchangePlugin/Test/TestExportPart_Failure_2.py index 75fbcb896..133d0cefa 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Failure_2.py +++ b/src/ExchangePlugin/Test/TestExportPart_Failure_2.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart12' model.removeFile(filename) featureToExport = Box_1 diff --git a/src/ExchangePlugin/Test/TestExportPart_Failure_3.py b/src/ExchangePlugin/Test/TestExportPart_Failure_3.py index d24a81936..4ca3497a7 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Failure_3.py +++ b/src/ExchangePlugin/Test/TestExportPart_Failure_3.py @@ -31,7 +31,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart10' model.removeFile(filename) model.begin() diff --git a/src/ExchangePlugin/Test/TestExportPart_FullPartSet.py b/src/ExchangePlugin/Test/TestExportPart_FullPartSet.py index 0f6bfa2f9..0afe6dc0a 100644 --- a/src/ExchangePlugin/Test/TestExportPart_FullPartSet.py +++ b/src/ExchangePlugin/Test/TestExportPart_FullPartSet.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart20' model.removeFile(filename) model.begin() diff --git a/src/ExchangePlugin/Test/TestExportPart_FullPart_1.py b/src/ExchangePlugin/Test/TestExportPart_FullPart_1.py index 8c48bb60c..a409f769a 100644 --- a/src/ExchangePlugin/Test/TestExportPart_FullPart_1.py +++ b/src/ExchangePlugin/Test/TestExportPart_FullPart_1.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart15' model.removeFile(filename) model.begin() diff --git a/src/ExchangePlugin/Test/TestExportPart_FullPart_2.py b/src/ExchangePlugin/Test/TestExportPart_FullPart_2.py index 060ee5d62..f6c55ee71 100644 --- a/src/ExchangePlugin/Test/TestExportPart_FullPart_2.py +++ b/src/ExchangePlugin/Test/TestExportPart_FullPart_2.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart2' model.removeFile(filename) model.begin() diff --git a/src/ExchangePlugin/Test/TestExportPart_PartSet.py b/src/ExchangePlugin/Test/TestExportPart_PartSet.py index 09a8528cc..f67453881 100644 --- a/src/ExchangePlugin/Test/TestExportPart_PartSet.py +++ b/src/ExchangePlugin/Test/TestExportPart_PartSet.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart22' model.removeFile(filename) model.begin() diff --git a/src/ExchangePlugin/Test/TestExportPart_Results_1.py b/src/ExchangePlugin/Test/TestExportPart_Results_1.py index 831f36e96..fd686dcf4 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Results_1.py +++ b/src/ExchangePlugin/Test/TestExportPart_Results_1.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart23' model.removeFile(filename) featureToExport = Point_2 diff --git a/src/ExchangePlugin/Test/TestExportPart_Results_2.py b/src/ExchangePlugin/Test/TestExportPart_Results_2.py index 491d35b18..33695c15d 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Results_2.py +++ b/src/ExchangePlugin/Test/TestExportPart_Results_2.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart3' model.removeFile(filename) featureToExport = Axis_4 diff --git a/src/ExchangePlugin/Test/TestExportPart_Results_3.py b/src/ExchangePlugin/Test/TestExportPart_Results_3.py index 591a87670..ba8590fe6 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Results_3.py +++ b/src/ExchangePlugin/Test/TestExportPart_Results_3.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart30' model.removeFile(filename) featureToExport = Sketch_1 diff --git a/src/ExchangePlugin/Test/TestExportPart_Results_4.py b/src/ExchangePlugin/Test/TestExportPart_Results_4.py index c2b94262f..62d258ccb 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Results_4.py +++ b/src/ExchangePlugin/Test/TestExportPart_Results_4.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart28' model.removeFile(filename) featureToExport = Extrusion_1 diff --git a/src/ExchangePlugin/Test/TestExportPart_Results_5.py b/src/ExchangePlugin/Test/TestExportPart_Results_5.py index da6be8779..9de2870d2 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Results_5.py +++ b/src/ExchangePlugin/Test/TestExportPart_Results_5.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart11' model.removeFile(filename) featureToExport = Sketch_2 diff --git a/src/ExchangePlugin/Test/TestExportPart_Results_6.py b/src/ExchangePlugin/Test/TestExportPart_Results_6.py index 924bb362e..8f804dd8d 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Results_6.py +++ b/src/ExchangePlugin/Test/TestExportPart_Results_6.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart24' model.removeFile(filename) featureToExport = Revolution_1 diff --git a/src/ExchangePlugin/Test/TestExportPart_Results_7.py b/src/ExchangePlugin/Test/TestExportPart_Results_7.py index 5debe9bfc..212633d45 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Results_7.py +++ b/src/ExchangePlugin/Test/TestExportPart_Results_7.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart26' model.removeFile(filename) featureToExport = Box_1 diff --git a/src/ExchangePlugin/Test/TestExportPart_Results_8.py b/src/ExchangePlugin/Test/TestExportPart_Results_8.py index 869cd936b..b0322d286 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Results_8.py +++ b/src/ExchangePlugin/Test/TestExportPart_Results_8.py @@ -63,7 +63,7 @@ model.end() import os -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart18' model.removeFile(filename) featureToExport = Translation_1 diff --git a/src/ExchangePlugin/Test/TestImportPart_AfterCurrent_1.py b/src/ExchangePlugin/Test/TestImportPart_AfterCurrent_1.py index 2521fdfe4..8812234ac 100644 --- a/src/ExchangePlugin/Test/TestImportPart_AfterCurrent_1.py +++ b/src/ExchangePlugin/Test/TestImportPart_AfterCurrent_1.py @@ -34,7 +34,7 @@ Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/YOZ"), mod model.do() model.end() -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart25' model.removeFile(filename) # store the reference data diff --git a/src/ExchangePlugin/Test/TestImportPart_AfterCurrent_2.py b/src/ExchangePlugin/Test/TestImportPart_AfterCurrent_2.py index 5742c570f..8e66e4529 100644 --- a/src/ExchangePlugin/Test/TestImportPart_AfterCurrent_2.py +++ b/src/ExchangePlugin/Test/TestImportPart_AfterCurrent_2.py @@ -34,7 +34,7 @@ Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/YOZ"), mod model.do() model.end() -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart5' model.removeFile(filename) # store the reference data diff --git a/src/ExchangePlugin/Test/TestImportPart_AfterLast_1.py b/src/ExchangePlugin/Test/TestImportPart_AfterLast_1.py index 8bc87e142..9a3444061 100644 --- a/src/ExchangePlugin/Test/TestImportPart_AfterLast_1.py +++ b/src/ExchangePlugin/Test/TestImportPart_AfterLast_1.py @@ -64,7 +64,7 @@ model.do() model.end() -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart4' model.removeFile(filename) # store the reference data diff --git a/src/ExchangePlugin/Test/TestImportPart_AfterLast_2.py b/src/ExchangePlugin/Test/TestImportPart_AfterLast_2.py index dd901e42b..83dd4c167 100644 --- a/src/ExchangePlugin/Test/TestImportPart_AfterLast_2.py +++ b/src/ExchangePlugin/Test/TestImportPart_AfterLast_2.py @@ -65,7 +65,7 @@ model.do() model.end() -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart7' model.removeFile(filename) featureToExport = Sketch_1 diff --git a/src/ExchangePlugin/Test/TestImportPart_AfterLast_3.py b/src/ExchangePlugin/Test/TestImportPart_AfterLast_3.py index 415b5fee4..6fcfcc29e 100644 --- a/src/ExchangePlugin/Test/TestImportPart_AfterLast_3.py +++ b/src/ExchangePlugin/Test/TestImportPart_AfterLast_3.py @@ -64,7 +64,7 @@ model.do() model.end() -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart9' model.removeFile(filename) featureToExport = Box_1 diff --git a/src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py b/src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py index cb6a8cc7c..664fb95a9 100644 --- a/src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py +++ b/src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py @@ -64,7 +64,7 @@ model.do() model.end() -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart19' model.removeFile(filename) featureToExport = Translation_1 diff --git a/src/ExchangePlugin/Test/TestImportPart_AfterLast_5.py b/src/ExchangePlugin/Test/TestImportPart_AfterLast_5.py index dd6d91d7c..ad69b4348 100644 --- a/src/ExchangePlugin/Test/TestImportPart_AfterLast_5.py +++ b/src/ExchangePlugin/Test/TestImportPart_AfterLast_5.py @@ -65,7 +65,7 @@ model.do() model.end() -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart16' model.removeFile(filename) # store the reference data diff --git a/src/ExchangePlugin/Test/TestImportPart_AfterLast_6.py b/src/ExchangePlugin/Test/TestImportPart_AfterLast_6.py index 45f6ac862..1976badca 100644 --- a/src/ExchangePlugin/Test/TestImportPart_AfterLast_6.py +++ b/src/ExchangePlugin/Test/TestImportPart_AfterLast_6.py @@ -65,7 +65,7 @@ model.do() model.end() -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart14' model.removeFile(filename) # store the reference data diff --git a/src/ExchangePlugin/Test/TestImportPart_Construction_1.py b/src/ExchangePlugin/Test/TestImportPart_Construction_1.py index 7b851bdce..15d14272c 100644 --- a/src/ExchangePlugin/Test/TestImportPart_Construction_1.py +++ b/src/ExchangePlugin/Test/TestImportPart_Construction_1.py @@ -49,7 +49,7 @@ for feat in features: res.append(GeomAlgoAPI_ShapeTools.volume(r.shape())) refData.append( (feat.getKind(), res) ) -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart6' model.removeFile(filename) # emport the document diff --git a/src/ExchangePlugin/Test/TestImportPart_Construction_2.py b/src/ExchangePlugin/Test/TestImportPart_Construction_2.py index acb76f9ec..a05d11721 100644 --- a/src/ExchangePlugin/Test/TestImportPart_Construction_2.py +++ b/src/ExchangePlugin/Test/TestImportPart_Construction_2.py @@ -51,7 +51,7 @@ for feat in features: res.append(GeomAlgoAPI_ShapeTools.volume(r.shape())) refData.append( (feat.getKind(), res) ) -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart13' model.removeFile(filename) # emport the document diff --git a/src/ExchangePlugin/Test/TestImportPart_Construction_3.py b/src/ExchangePlugin/Test/TestImportPart_Construction_3.py index 08fbef036..4ecce2479 100644 --- a/src/ExchangePlugin/Test/TestImportPart_Construction_3.py +++ b/src/ExchangePlugin/Test/TestImportPart_Construction_3.py @@ -51,7 +51,7 @@ for feat in features: res.append(GeomAlgoAPI_ShapeTools.volume(r.shape())) refData.append( (feat.getKind(), res) ) -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart21' model.removeFile(filename) # emport the document diff --git a/src/ExchangePlugin/Test/TestImportPart_Construction_4.py b/src/ExchangePlugin/Test/TestImportPart_Construction_4.py index 642a15443..15935f8b3 100644 --- a/src/ExchangePlugin/Test/TestImportPart_Construction_4.py +++ b/src/ExchangePlugin/Test/TestImportPart_Construction_4.py @@ -51,7 +51,7 @@ for feat in features: res.append(GeomAlgoAPI_ShapeTools.volume(r.shape())) refData.append( (feat.getKind(), res) ) -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart27' model.removeFile(filename) # emport the document diff --git a/src/ExchangePlugin/Test/TestImportPart_Multiple.py b/src/ExchangePlugin/Test/TestImportPart_Multiple.py index 8ba713cc1..6a66f4943 100644 --- a/src/ExchangePlugin/Test/TestImportPart_Multiple.py +++ b/src/ExchangePlugin/Test/TestImportPart_Multiple.py @@ -36,7 +36,7 @@ Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/YOZ"), mod model.do() model.end() -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart8' model.removeFile(filename) # export all features from Part_1 diff --git a/src/ExchangePlugin/Test/TestImportPart_ToEmptyPart.py b/src/ExchangePlugin/Test/TestImportPart_ToEmptyPart.py index b314bd387..9b1306daf 100644 --- a/src/ExchangePlugin/Test/TestImportPart_ToEmptyPart.py +++ b/src/ExchangePlugin/Test/TestImportPart_ToEmptyPart.py @@ -67,7 +67,7 @@ for feat in features: res.append(GeomAlgoAPI_ShapeTools.volume(r.shape())) refData.append( (feat.getKind(), res) ) -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart17' model.removeFile(filename) # emport the document diff --git a/src/ExchangePlugin/Test/TestImportPart_ToEmptyPartSet.py b/src/ExchangePlugin/Test/TestImportPart_ToEmptyPartSet.py index 5a3bd8549..368cc3ad9 100644 --- a/src/ExchangePlugin/Test/TestImportPart_ToEmptyPartSet.py +++ b/src/ExchangePlugin/Test/TestImportPart_ToEmptyPartSet.py @@ -67,7 +67,7 @@ for feat in features: res.append(GeomAlgoAPI_ShapeTools.volume(r.shape())) refData.append( (feat.getKind(), res) ) -filename = 'check_export.shaperpart' +filename = 'check_export.shaperpart1' model.removeFile(filename) # emport the document -- 2.39.2