]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2431 - remove application exit from unit tests
authormpv <mikhail.ponikarov@opencascade.com>
Tue, 27 Feb 2018 10:57:58 +0000 (13:57 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Tue, 27 Feb 2018 10:57:58 +0000 (13:57 +0300)
40 files changed:
src/ConstructionAPI/Test/TestAxis.py
src/ConstructionAPI/Test/TestPoint.py
src/ExchangeAPI/Test/TestExchange.py
src/ModelHighAPI/Test/TestDouble.py
src/ModelHighAPI/Test/TestInteger.py
src/ModelHighAPI/Test/TestRefAttr.py
src/ModelHighAPI/Test/TestReference.py
src/ParametersPlugin/Test/TestParameterChangeValue.py
src/PythonAPI/Test/TestFeatures.py
src/PythonAPI/Test/TestFeaturesExtrusion.py
src/PythonAPI/Test/TestFeaturesRevolution.py
src/PythonAPI/Test/TestMakeBrick1.py
src/PythonAPI/Test/TestMakeBrick2.py
src/PythonAPI/Test/TestModel.py
src/PythonAPI/Test/TestPlatine.py
src/PythonAPI/Test/TestPrimitivesBox.py
src/PythonAPI/Test/TestPythonAPI.py
src/PythonAPI/Test/TestSketcherAddArc.py
src/PythonAPI/Test/TestSketcherAddCircle.py
src/PythonAPI/Test/TestSketcherAddLine.py
src/PythonAPI/Test/TestSketcherAddMirror.py
src/PythonAPI/Test/TestSketcherAddPoint.py
src/PythonAPI/Test/TestSketcherSetAngle.py
src/PythonAPI/Test/TestSketcherSetCoincident.py
src/PythonAPI/Test/TestSketcherSetFillet.py
src/PythonAPI/Test/TestSketcherSetFixed.py
src/PythonAPI/Test/TestSketcherSetHorizontal.py
src/PythonAPI/Test/TestSketcherSetLength.py
src/PythonAPI/Test/TestSketcherSetParallel.py
src/PythonAPI/Test/TestSketcherSetPerpendicular.py
src/PythonAPI/Test/TestSketcherSetRadius.py
src/PythonAPI/Test/TestSketcherSetTangent.py
src/PythonAPI/Test/TestSketcherSetVertical.py
src/SketchAPI/Test/TestSketch.py
src/SketchPlugin/Test/TestConstraintCollinear.py
src/SketchPlugin/Test/TestFilletInteracting.py
src/SketchPlugin/Test/TestMoveArc.py
src/SketchPlugin/Test/TestMoveCircle.py
src/SketchPlugin/Test/TestMoveLine.py
src/SketchPlugin/Test/TestMovePoint.py

index b6af53ae3a722c0ca9ddf128f56b366de822d47d..995577136490c12f31ed28b1bdc6e7862fcd9b7a 100644 (file)
@@ -45,4 +45,4 @@ class AxisTestCase(unittest.TestCase):
         self.assertEqual(100,axis.zDimension().value())
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index 478f8b02fcc3a71f5b5facdd7aa7805e324f23ea..185859540962ca8e287bd1245fef8758cafbd96f 100644 (file)
@@ -55,4 +55,4 @@ class PointTestCase(unittest.TestCase):
         self.assertEqual("x + 30", point.z().text())
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index 7a5670f99d2e30030fc34e9d103559e11bc809a3..94c731faf8a22553bd1beac46d23306ff9d9a82e 100644 (file)
@@ -47,4 +47,4 @@ class ExchangeTestCase(unittest.TestCase):
         self.session.finishOperation()
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index 116e20304be0ba72757e76303d53eff4e47e5c9a..438444b028c84f4d7c38625141c22660eb2fa222 100644 (file)
@@ -35,4 +35,4 @@ class DoubleTestCase(unittest.TestCase):
 
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index 27e1b4d23990be3b1d92e49acbed40c6a3928a59..26ac7cf62b5488d9c8674a8bad518d840cc9dc8c 100644 (file)
@@ -35,4 +35,4 @@ class IntegerTestCase(unittest.TestCase):
 
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index a6cffbd91e1bddbb835e3f8d0f31c661348d6437..7706e4a162e75e339b27acb609dd34668caad2ab 100644 (file)
@@ -56,4 +56,4 @@ class RefAttrTestCase(FeaturesFixture):
 
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index 2e82750e23dcce580b5eb36bba5c7b58aac1ddda..4345833038a3e34fa504efa8f4a2eb8594e46028 100644 (file)
@@ -52,4 +52,4 @@ class RefAttrTestCase(FeaturesFixture):
 
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index b6ff5eefeb2122dcce5d4f20c83af496b05bc610..2da87e4e62c87f4891f28078928a152b207a9d6b 100644 (file)
@@ -176,7 +176,7 @@ class TestParameterRename(unittest.TestCase):
         self.assertEqual(self.aRadiusAttr.value(), 200.)
 
 if __name__ == '__main__':
-    unittest.main()
+    unittest.main(exit=False)
 #=========================================================================
 # End of test
 #=========================================================================
index 067ae4e7bafc36ae2b79bb0f78814f076f9f73ff..7358f11efbb0c018e3bbc413a1ebd616d0d5b5aa 100644 (file)
@@ -107,4 +107,4 @@ class FeaturesTestCase(FeaturesFixture):
 #-----------------------------------------------------------------------------
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index c8795cbdf9714004454354dc27d3066cccf5ca6e..e5f08c70f46663569ee67f609489ab4a5775f529 100644 (file)
@@ -173,4 +173,4 @@ class FeaturesExtrusionTestCase(FeaturesExtrusionFixture):
 
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index f1d4f9c5d46edb9551678ac981f4797f23281d96..37a69b386b3a99a84db0d85b0ada24f8288c5dda 100644 (file)
@@ -206,4 +206,4 @@ class FeaturesRevolutionTestCase(FeaturesRevolutionFixture):
 
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index d70e9abf265b348e5a2a454e726fb83c8876049f..b5bd7bfef106a1491bd020f7a3545d7776c45c5c 100644 (file)
@@ -23,4 +23,4 @@ import unittest
 import salome.shaper.examples.MakeBrick1
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index 55f84875854b3721ae20502d31807858d2a59b8f..cc681ff094d91ec4b8b50e75af75059482f7d57e 100644 (file)
@@ -23,4 +23,4 @@ import unittest
 import salome.shaper.examples.MakeBrick2
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index 0d7e0eb2745af7d2f89f1369b8364f2174069c25..5317eeb87db3899ba33333b94e29318b05492f0c 100644 (file)
@@ -36,4 +36,4 @@ class ModelTestCase(unittest.TestCase):
         model.addSketch(self.part, plane)
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index dafee790c3ce3a0235f1dcc85a8e5eac4914f35e..dd5b4989049433a0ee4318f11145c1f6f923bf04 100644 (file)
@@ -23,4 +23,4 @@ import unittest
 import salome.shaper.examples.Platine
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index 80a9d33dd3587a0bb85f67bc3121514de1c254df..c679406702821bcb9f5a0d08225a38130512a3d0 100644 (file)
@@ -60,4 +60,4 @@ class PrimitivesAddBoxTestCase(PrimitivesAddBox):
         self.assertEqual(box.secondPoint().context().shape().isVertex(),True)
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index 2f804b031ff29c5cd14c40130f94f7a25e454731..fadc37be7c0be23832ea18db718c82457f9b16c2 100644 (file)
@@ -23,4 +23,4 @@ from salome.shaper import model
 from salome.shaper import geom
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index 4996f678e29bd16b85b2aa0442ce2dbee7758b6a..1c3d2278f5c1c82ea14cd7550e66fbadc5b78d3c 100644 (file)
@@ -55,4 +55,4 @@ class SketcherAddArc(SketcherTestCase):
 
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2)
+    unittest.main(verbosity=2, exit=False)
index e8e76087bea8f33af7f105a520df8ae4a0919bf2..13ac042022733652ed66d2b898ebd41a46a258e9 100644 (file)
@@ -42,4 +42,4 @@ class SketcherAddCircle(SketcherTestCase):
 
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2)
+    unittest.main(verbosity=2, exit=False)
index f295a8b29658b8d6fab8b197a24301443a37e068..e5b021bf778f71ea9a9a67fb8c8dcd10f246b5f9 100644 (file)
@@ -41,4 +41,4 @@ class SketcherAddLine(SketcherTestCase):
 
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2)
\ No newline at end of file
+    unittest.main(verbosity=2, exit=False)
\ No newline at end of file
index 4c6633e320fb99ca6043f3f41448ef72ea982720..bfafe8b81dc372ea8cb39f9e749028a8fcb8052b 100644 (file)
@@ -47,4 +47,4 @@ class SketcherAddLine(SketcherTestCase):
         # self.assertTrue(False,  msg="%s" % (dir(mirrored_circle)))
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2)
+    unittest.main(verbosity=2, exit=False)
index 2ec59d0fa70a4671c9dc8b0ce14ff3170854e86a..ce6a59a2025a95689222ec87a8ca1575d1606a0c 100644 (file)
@@ -37,4 +37,4 @@ class SketcherAddPoint(SketcherTestCase):
         self.assertEqual(point.coordinates().y(), 2.0)
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2)
\ No newline at end of file
+    unittest.main(verbosity=2, exit=False)
\ No newline at end of file
index 583fd51b20ad49702400fbd653ebe0958c43d774..80341e3694709be91add7d9159bba8efba6388cc 100644 (file)
@@ -51,4 +51,4 @@ class SketcherSetAngle(SketcherTestCase):
             )
 
 if __name__ == "__main__":
-    unittest.main()
\ No newline at end of file
+    unittest.main(exit=False)
\ No newline at end of file
index 1ebe0ce5b9d301d4bf6cef48ae84242cd4a60156..4ceda389494adada7b1292fae84a67e269694fa4 100644 (file)
@@ -40,4 +40,4 @@ class SketcherSetCoincident(SketcherTestCase):
             self.sketch.setCoincident(l1.endPoint())
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2)
\ No newline at end of file
+    unittest.main(verbosity=2, exit=False)
\ No newline at end of file
index d05f7653090e6e8a1f702c361bffbb727ac201a8..52f9e63360dea856b783a9612b50d68528d8af70 100644 (file)
@@ -38,4 +38,4 @@ class SketcherSetFillet(SketcherTestCase):
         model.do()
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2)
\ No newline at end of file
+    unittest.main(verbosity=2, exit=False)
\ No newline at end of file
index d0a0b57a422f0cdef8b7fe951831eecdf39915e6..54a485452b00852c224f91bdf2ebf3ccbf730c6a 100644 (file)
@@ -32,4 +32,4 @@ class SketcherSetFixed(SketcherTestCase):
         self.assertEqual((circle.center().x(), circle.center().y()), (0, 10))
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2)
+    unittest.main(verbosity=2, exit=False)
index 416fccfc180bd8b5801a52649aeeccd34da56435..e5c40aef505a5c6aa99e13e587f60638dd847d2b 100644 (file)
@@ -30,4 +30,4 @@ class SketcherSetHorizontal(SketcherTestCase):
         self.assertEqual(line.startPoint().y(), line.endPoint().y())
 
 if __name__ == "__main__":
-    unittest.main()
\ No newline at end of file
+    unittest.main(exit=False)
\ No newline at end of file
index bba6c2f169d90f11d4edd252241ed455fe265c42..233f677b540dce73716dce29eb9c7b270af97f7c 100644 (file)
@@ -39,4 +39,4 @@ class SketcherSetLength(SketcherTestCase):
         self.assertAlmostEqual(length, 25.0, delta=TestSketcher.DELTA)
 
 if __name__ == "__main__":
-    unittest.main()
\ No newline at end of file
+    unittest.main(exit=False)
\ No newline at end of file
index e077f26d46ef3d691a80bfee8c0f7eca4eb07d91..99b78e150b943e554bab22c1e09874a59a8b48df 100644 (file)
@@ -30,4 +30,4 @@ class SketcherSetParallel(SketcherTestCase):
         model.do()
 
 if __name__ == "__main__":
-    unittest.main()
\ No newline at end of file
+    unittest.main(exit=False)
\ No newline at end of file
index 99fa6612481c4fdc6d692f9e67ab97f6805c4fb7..b702cb563956bec1d915d3938b64deef33acfa65 100644 (file)
@@ -38,4 +38,4 @@ class SketcherSetPerpendicular(SketcherTestCase):
         self.assertAlmostEqual(dot_product, 0.0, delta=TestSketcher.DELTA)
 
 if __name__ == "__main__":
-    unittest.main()
\ No newline at end of file
+    unittest.main(exit=False)
\ No newline at end of file
index aa06f7cef992d02e6fd49afd3145ebc3acd7cef8..37f9540fc26e7f3a548780439245eb31aed7afad 100644 (file)
@@ -38,4 +38,4 @@ class SketcherSetRadius(SketcherTestCase):
         self.assertEqual(circle.radius().value(), 25.0)
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2)
\ No newline at end of file
+    unittest.main(verbosity=2, exit=False)
\ No newline at end of file
index b0b953ec7a2958ad8847f78390b564a030220d31..127b070ec5f9c9b9c5d8a6f4d34c520a261edb21 100644 (file)
@@ -41,4 +41,4 @@ class SketcherSetTangent(SketcherTestCase):
             self.sketch.setTangent(None, self.arc)
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2)
\ No newline at end of file
+    unittest.main(verbosity=2, exit=False)
\ No newline at end of file
index a191a45f62fb4bdf5d945d078bd86e1c8f3b30d3..76926b3dc63e78a5348dfbdd44e3b2bc20227019 100644 (file)
@@ -30,4 +30,4 @@ class SketcherSetVertical(SketcherTestCase):
         self.assertEqual(line.startPoint().x(), line.endPoint().x())
 
 if __name__ == "__main__":
-    unittest.main()
\ No newline at end of file
+    unittest.main(exit=False)
\ No newline at end of file
index 1757b40a5c6ccf0441bd0936bbe6ea2ea37d50be..c5cbfa8651486b75922da017ce3cf454a6c1a620 100644 (file)
@@ -35,4 +35,4 @@ class SketchTestCase(unittest.TestCase):
 # TODO(spo): add tests.
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)
index 1e9dcfbe03511b54d84f54ba80c31797885e35e1..6f3d2dac5d4ccb72d9d8f3856efdd1dd81787a5f 100644 (file)
@@ -186,7 +186,7 @@ class TestConstraintCollinear(unittest.TestCase):
     self.assertEqual(model.dof(self.mySketch), self.myDOF)
 
 if __name__ == '__main__':
-  unittest.main()
+  unittest.main(exit=False)
 #=========================================================================
 # End of test
 #=========================================================================
index 5026f5385824b3271a90affc8d1562f26c428a74..9eac72b0e4b476e923861c11b82df48710a63e84 100644 (file)
@@ -633,4 +633,4 @@ class TestFilletInteracting(unittest.TestCase):
 
 
 if __name__ == '__main__':
-  unittest.main()
+  unittest.main(exit=False)
index 4419d85e1cf1fe72c4a950a2aef9d1c48474173e..53c49dcabe63ba862eaf572c211be6f5f34ea20b 100644 (file)
@@ -346,4 +346,4 @@ class TestMoveArc(unittest.TestCase):
 
 
 if __name__ == '__main__':
-  unittest.main()
+  unittest.main(exit=False)
index 54a9b580e5d6473e86aaeb53e791993c1e227205..c0ded8ac0683555f0dbe8c9994b39f4a521e2c8a 100644 (file)
@@ -146,4 +146,4 @@ class TestMoveCircle(unittest.TestCase):
 
 
 if __name__ == '__main__':
-  unittest.main()
+  unittest.main(exit=False)
index 3d4efa1dc5aba29f2aaf0a5e4b76d02553a405c9..fe63ee0f60bd39324643f30b3d0b0b98ea16fb10 100644 (file)
@@ -133,4 +133,4 @@ class TestMoveLine(unittest.TestCase):
 
 
 if __name__ == '__main__':
-  unittest.main()
+  unittest.main(exit=False)
index 60b0a43b640fd3fdedce506b4dbe4788465ec53d..2638be12b0156184ab61586892a147a450545ead 100644 (file)
@@ -105,4 +105,4 @@ class TestMovePoint(unittest.TestCase):
 
 
 if __name__ == '__main__':
-  unittest.main()
+  unittest.main(exit=False)