Exemplo n.º 1
0
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(),
    )
Exemplo n.º 2
0
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())
Exemplo n.º 3
0
 def test_handle_error(self, send_mail):
     send_mail('server', 'mailbox', 'password', 'rec', 'sender', 'body')