]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ConstructionAPI/Test/TestPoint.py
Salome HOME
Fix tests using unittest (failed cases were not reported by ctest).
[modules/shaper.git] / src / ConstructionAPI / Test / TestPoint.py
index 185859540962ca8e287bd1245fef8758cafbd96f..572e78ab81d8bdd88e2ec4f09649aa880423db7a 100644 (file)
@@ -55,4 +55,5 @@ class PointTestCase(unittest.TestCase):
         self.assertEqual("x + 30", point.z().text())
 
 if __name__ == "__main__":
-    unittest.main(exit=False)
+    test_program = unittest.main(exit=False)
+    assert test_program.result.wasSuccessful(), "Test failed"