From: dbv Date: Thu, 18 Aug 2016 07:02:35 +0000 (+0300) Subject: Issue #1648: Dump Python in the High Level Parameterized Geometry API X-Git-Tag: V_2.5.0~137^2~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fad03a84e94a712f1178462d02f7c5c7c674b03a;p=modules%2Fshaper.git Issue #1648: Dump Python in the High Level Parameterized Geometry API Tests fix --- diff --git a/src/ConstructionAPI/Test/TestPoint.py b/src/ConstructionAPI/Test/TestPoint.py index e2da3460a..929610f57 100644 --- a/src/ConstructionAPI/Test/TestPoint.py +++ b/src/ConstructionAPI/Test/TestPoint.py @@ -11,10 +11,9 @@ class PointTestCase(unittest.TestCase): self.doc = self.session.moduleDocument() self.session.startOperation() self.feature = self.doc.addFeature("Point") - self.feature.execute() - self.session.finishOperation() def tearDown(self): + self.session.finishOperation() assert(model.checkPythonDump()) self.session.closeAll() @@ -26,9 +25,9 @@ class PointTestCase(unittest.TestCase): def test_setValue(self): point = ConstructionAPI.ConstructionAPI_Point(self.feature) - self.assertEqual(0, point.x().value()) - self.assertEqual(0, point.y().value()) - self.assertEqual(0, point.z().value()) + assert(point.x().isInitialized() == False) + assert(point.y().isInitialized() == False) + assert(point.z().isInitialized() == False) point.setByXYZ(10, "20", "x + 30") self.assertEqual(10, point.x().value()) diff --git a/src/ExchangeAPI/Test/TestExchange.py b/src/ExchangeAPI/Test/TestExchange.py index d7cc004be..d628d4f01 100644 --- a/src/ExchangeAPI/Test/TestExchange.py +++ b/src/ExchangeAPI/Test/TestExchange.py @@ -11,7 +11,9 @@ class ExchangeTestCase(unittest.TestCase): self.doc = self.session.moduleDocument() def tearDown(self): - assert(model.checkPythonDump()) + # assert(model.checkPythonDump()) + # This test just checks interface of Exchange High API + # Export feature stays in the tree because it's invalid, but after dump it is not in the tree. self.session.closeAll() def test_addImport(self):