From 91c1b011ac5e93e6574cded93cdda4d0908bb51e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 19 2016 15:21:03 +0000 Subject: Remove debug code and do not send email when running the tests --- diff --git a/tests/test_pagure_flask_ui_login.py b/tests/test_pagure_flask_ui_login.py index ef737ed..87ae6f2 100644 --- a/tests/test_pagure_flask_ui_login.py +++ b/tests/test_pagure_flask_ui_login.py @@ -42,7 +42,7 @@ class PagureFlaskLogintests(tests.Modeltests): super(PagureFlaskLogintests, self).setUp() pagure.APP.config['TESTING'] = True - pagure.APP.config['EMAIL_SEND'] = True + pagure.APP.config['EMAIL_SEND'] = False pagure.APP.config['PAGURE_AUTH'] = 'local' pagure.SESSION = self.session pagure.ui.SESSION = self.session @@ -380,7 +380,6 @@ class PagureFlaskLogintests(tests.Modeltests): item = pagure.lib.search_user(self.session, username='foouser') self.assertEqual(item.user, 'foouser') self.assertNotEqual(item.token, None) - print item.password self.assertTrue(item.password.startswith('$2$')) old_password = item.password