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)