]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PythonAPI/Test/TestSketcherSetHorizontal.py
Salome HOME
Fix tests using unittest (failed cases were not reported by ctest).
[modules/shaper.git] / src / PythonAPI / Test / TestSketcherSetHorizontal.py
index e5c40aef505a5c6aa99e13e587f60638dd847d2b..a8d6f8cbf5b0d9d47389b2860402f8884fc3d07c 100644 (file)
@@ -30,4 +30,5 @@ class SketcherSetHorizontal(SketcherTestCase):
         self.assertEqual(line.startPoint().y(), line.endPoint().y())
 
 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