Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated copyright comment
[modules/shaper.git]
/
src
/
ExchangePlugin
/
Test
/
TestImportPart_Construction_1.py
diff --git
a/src/ExchangePlugin/Test/TestImportPart_Construction_1.py
b/src/ExchangePlugin/Test/TestImportPart_Construction_1.py
index 45b0529b6c0e472a3afb1d66150ded6539f16149..230406012af305477f867f86a16c295739857c4c 100644
(file)
--- a/
src/ExchangePlugin/Test/TestImportPart_Construction_1.py
+++ b/
src/ExchangePlugin/Test/TestImportPart_Construction_1.py
@@
-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
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-49,8
+49,8
@@
for feat in features:
res.append(GeomAlgoAPI_ShapeTools.volume(r.shape()))
refData.append( (feat.getKind(), res) )
res.append(GeomAlgoAPI_ShapeTools.volume(r.shape()))
refData.append( (feat.getKind(), res) )
-filename =
'check_export.shaperpart'
-model.removeFile(filename)
+filename =
model.getTmpFileName('check_export', '.shaperpart')
+model.remove
Tmp
File(filename)
# emport the document
model.begin()
# emport the document
model.begin()
@@
-67,6
+67,8
@@
partSet = model.moduleDocument()
model.importPart(partSet, filename)
model.end()
model.importPart(partSet, filename)
model.end()
+model.removeTmpFile(filename)
+
# Test 1. No Part should be created
assert(partSet.size(ModelAPI_ResultPart.group()) == 0)
# Test 1. No Part should be created
assert(partSet.size(ModelAPI_ResultPart.group()) == 0)