From 1e42d72d5320e3433ef9f8d6bc0cc5aafc05921a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 22 2015 07:57:17 +0000 Subject: Do not send emails during the tests --- diff --git a/tests/test_progit_flask_ui_repo.py b/tests/test_progit_flask_ui_repo.py index 507eaa7..0433c54 100644 --- a/tests/test_progit_flask_ui_repo.py +++ b/tests/test_progit_flask_ui_repo.py @@ -1147,10 +1147,12 @@ index 0000000..fb7093d self.assertFalse( 'No content found in this repository' in output.data) + @patch('pagure.lib.notify.send_email') @patch('pagure.ui.repo.admin_session_timedout') - def test_delete_repo(self, ast): + def test_delete_repo(self, ast, send_email): """ Test the delete_repo endpoint. """ ast.return_value = False + send_email.return_value = True output = self.app.post('/foo/delete') # User not logged in