]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1648: Dump Python in the High Level Parameterized Geometry API
authordbv <dbv@opencascade.com>
Fri, 19 Aug 2016 11:48:48 +0000 (14:48 +0300)
committerdbv <dbv@opencascade.com>
Fri, 19 Aug 2016 11:48:48 +0000 (14:48 +0300)
Tests fix

src/PythonAPI/Test/TestFeatures.py

index 54fe5510f459461f6e397a6d36c9f5d43c2c3cef..4a071252f9d859c0f064974d4eaecc7c2b0e871d 100644 (file)
@@ -18,7 +18,9 @@ class FeaturesFixture(unittest.TestCase):
 
     def tearDown(self):
         model.end()
-        assert(model.checkPythonDump())
+        # assert(model.checkPythonDump())
+        # This test checks creation of High API classes from low-level.
+        # It does not set any attributes, so features invalid, and dump also invalid.
         model.reset()
 
 #-----------------------------------------------------------------------------
@@ -73,7 +75,7 @@ class FeaturesTestCase(FeaturesFixture):
         FeaturesAPI.FeaturesAPI_Rotation(self.part.addFeature("Rotation"))
         FeaturesAPI.FeaturesAPI_Translation(self.part.addFeature("Translation"))
         FeaturesAPI.FeaturesAPI_Group(self.part.addFeature("Group"))
-        
+
         import PrimitivesAPI
         PrimitivesAPI.PrimitivesAPI_Box(self.part.addFeature("Box"))