Salome HOME
Fix tests using unittest (failed cases were not reported by ctest).
[modules/shaper.git] / src / PythonAPI / Test / TestSketcherSetPerpendicular.py
index b702cb563956bec1d915d3938b64deef33acfa65..8486ae141cb6ef42cda3dcef533896fa8bc81b24 100644 (file)
@@ -38,4 +38,5 @@ class SketcherSetPerpendicular(SketcherTestCase):
         self.assertAlmostEqual(dot_product, 0.0, delta=TestSketcher.DELTA)
 
 if __name__ == "__main__":
-    unittest.main(exit=False)
\ No newline at end of file
+    test_program = unittest.main(exit=False)
+    assert test_program.result.wasSuccessful(), "Test failed"
\ No newline at end of file