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
def test_send_failure_notification_email_task(app, smtp): send_landing_failure_email("*****@*****.**", "D54321", "Rebase failed!") assert len(smtp.outbox) == 1
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