+ extended test cases
[qpalma.git] / tests / test_qpalma_installation.py
index b47d4a6..68b14b8 100644 (file)
@@ -36,6 +36,9 @@ def check_for_module(module_name):
 
 
 if __name__ == '__main__':
+
+
+
    log_fn = 'error.log'
 
    if os.path.exists(log_fn):
@@ -77,9 +80,12 @@ if __name__ == '__main__':
    prediction_suite = unittest.TestLoader().loadTestsFromTestCase(TestQPalmaPrediction)
 
    all_suites = unittest.TestSuite([data_suite, approximation_suite, prediction_suite])
-   unittest.TextTestRunner(verbosity=2).run(all_suites)
+   test_result = unittest.TextTestRunner(verbosity=2).run(all_suites)
+   test_status = test_result.wasSuccessful()
 
-   if SUCCESS:
+   print 'TEST STATUS is %s' % str(test_status)
+   
+   if SUCCESS and test_status:
       print '\n\n--- All checks where successful!! ---\n\n'
    else:
       print '\n\n--- Send the file error.log to qpalma@tuebingen.mpg.de ---\n\n'