Salome HOME
Fix tests using unittest (failed cases were not reported by ctest).
[modules/shaper.git] / src / PythonAPI / Test / TestPrimitivesBox.py
index c679406702821bcb9f5a0d08225a38130512a3d0..81dfe1445867a2554da3107d7042a4d556a4bece 100644 (file)
@@ -60,4 +60,5 @@ class PrimitivesAddBoxTestCase(PrimitivesAddBox):
         self.assertEqual(box.secondPoint().context().shape().isVertex(),True)
 
 if __name__ == "__main__":
-    unittest.main(exit=False)
+    test_program = unittest.main(exit=False)
+    assert test_program.result.wasSuccessful(), "Test failed"