def handle_error(): cherrypy.response.status = 500 cherrypy.response.body = [ERROR_RESPONSE_BODY] send_mail( "smtp.googlemail.com", "bamboo.errors", "test-password", "*****@*****.**", "*****@*****.**", "[ERROR] 500 Error in Bamboo", cherrypy._cperror.format_exc(), )
def handle_error(): cherrypy.response.status = 500 cherrypy.response.body = [ERROR_RESPONSE_BODY] send_mail('smtp.googlemail.com', 'bamboo.errors', 'test-password', '*****@*****.**', '*****@*****.**', '[ERROR] 500 Error in Bamboo', cherrypy._cperror.format_exc())
def test_handle_error(self, send_mail): send_mail('server', 'mailbox', 'password', 'rec', 'sender', 'body')