Salome HOME
Use the latest version of SALOME (2020-11-20)
[modules/shaper.git] / test.hdfs / test_hdf.py
index 1ae49db9cd25b02d046d1ac666a1ce8c25ad7157..b58ea3b838ef5b39dfdd3e35d9917a70c5145b57 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2020  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -65,6 +65,10 @@ class TestHDF(unittest.TestCase):
       aPartFeature = PartSetAPI.PartSetAPI_Part(self.partSet.currentFeature(True))
       aPartsList["Part_{}".format(aPartIndex+1)] = aPartFeature
 
+      self.session.startOperation()
+      self.session.setActiveDocument(self.partSet)
+      self.session.finishOperation()
+
     # check reference data
     exec(open(self.reffile, "rb").read(), globals(), aPartsList)