Salome HOME
Adding test for bos #41748 [CEA] Issue in interpolation edition
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportPart_Multiple.py
index 9d3ad6218b16976f0ef2294d8389e75fd4f12590..d4ef33a1e11031e2c1b6960c59dc3d491fcf316b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2019  CEA/DEN, EDF R&D
+# Copyright (C) 2019-2024  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -36,8 +36,8 @@ Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/YOZ"), mod
 model.do()
 model.end()
 
-filename = model.tempFileName()
-model.removeFile(filename)
+filename = model.getTmpFileName('check_export', '.shaperpart')
+model.removeTmpFile(filename)
 
 # export all features from Part_1
 model.begin()
@@ -112,4 +112,6 @@ model.importPart(Part_1_doc, filename, Translation_1)
 model.end()
 checkUniqueNames(Part_1_doc)
 
+model.removeTmpFile(filename)
+
 assert(model.checkPythonDump())