]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PythonAPI/Test/TestSketcherAddPoint.py
Salome HOME
Fix tests using unittest (failed cases were not reported by ctest).
[modules/shaper.git] / src / PythonAPI / Test / TestSketcherAddPoint.py
index ce6a59a2025a95689222ec87a8ca1575d1606a0c..1a64f4d9407fa7fc0fdb6510c22308f83595aca1 100644 (file)
@@ -37,4 +37,5 @@ class SketcherAddPoint(SketcherTestCase):
         self.assertEqual(point.coordinates().y(), 2.0)
 
 if __name__ == "__main__":
-    unittest.main(verbosity=2, exit=False)
\ No newline at end of file
+    test_program = unittest.main(verbosity=2, exit=False)
+    assert test_program.result.wasSuccessful(), "Test failed"
\ No newline at end of file