]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Test HDF files: improve loading HDF files containing several Parts.
authorazv <azv@opencascade.com>
Wed, 4 Mar 2020 06:59:21 +0000 (09:59 +0300)
committerazv <azv@opencascade.com>
Wed, 4 Mar 2020 06:59:21 +0000 (09:59 +0300)
test.hdfs/test_hdf.py

index 1ae49db9cd25b02d046d1ac666a1ce8c25ad7157..618eb048aeef7c6f30fb05a63f0069c1efd5e893 100644 (file)
@@ -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)