Esempio n. 1
0
def test_mail_suppress_send(app, smtp):
    app.config["MAIL_SUPPRESS_SEND"] = True
    send_landing_failure_email("*****@*****.**", "D1", "Rebase failed!")
    assert len(smtp.outbox) == 0
Esempio n. 2
0
def test_send_failure_notification_email_task(app, smtp):
    send_landing_failure_email("*****@*****.**", "D54321",
                               "Rebase failed!")
    assert len(smtp.outbox) == 1
Esempio n. 3
0
def test_mail_sender_whitelist_allowances(app, smtp):
    app.config["MAIL_RECIPIENT_WHITELIST"] = "*****@*****.**"
    send_landing_failure_email("*****@*****.**", "D1", "Rebase failed!")
    assert len(smtp.outbox) == 1