From e8b89fa9e5ddc04e9930290b574876f651c0d921 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 21 2015 14:13:13 +0000 Subject: Don't send emails during the tests --- diff --git a/tests/test_progit_flask_ui_fork.py b/tests/test_progit_flask_ui_fork.py index 775d300..9b240a6 100644 --- a/tests/test_progit_flask_ui_fork.py +++ b/tests/test_progit_flask_ui_fork.py @@ -630,8 +630,11 @@ class PagureFlaskForktests(tests.Modeltests): '
  • Fork is empty, there are no commits to ' 'request pulling
  • ', output.data) - def test_request_pulls(self): + @patch('pagure.lib.notify.send_email') + def test_request_pulls(self, send_email): """ Test the request_pulls endpoint. """ + send_email.return_value = True + # No such project output = self.app.get('/test/pull-requests') self.assertEqual(output.status_code, 404)