Пример #1
0
def test_send_welcome_email(send_html_mail_jinja_mock):
    tasks.send_welcome_email(3615, ['*****@*****.**'], {'omg': 'yes'})
    send_html_mail_jinja_mock.assert_called_with(
        'Mozilla Add-ons: Thanks for submitting a Firefox Add-on!',
        'devhub/email/submission.html',
        'devhub/email/submission.txt', {'omg': 'yes'},
        recipient_list=['*****@*****.**'],
        from_email=settings.NOBODY_EMAIL,
        use_blacklist=False,
        perm_setting='individual_contact',
        headers={'Reply-To': settings.EDITORS_EMAIL})
Пример #2
0
def test_send_welcome_email(send_html_mail_jinja_mock):
    tasks.send_welcome_email(3615, ['*****@*****.**'], {'omg': 'yes'})
    send_html_mail_jinja_mock.assert_called_with(
        'Mozilla Add-ons: Thanks for submitting a Firefox Add-on!',
        'devhub/email/submission.html',
        'devhub/email/submission.txt',
        {'omg': 'yes'},
        recipient_list=['*****@*****.**'],
        from_email=settings.NOBODY_EMAIL,
        use_blacklist=False,
        perm_setting='individual_contact',
        headers={'Reply-To': settings.EDITORS_EMAIL})
Пример #3
0
def test_send_welcome_email(send_html_mail_jinja_mock):
    tasks.send_welcome_email(3615, ["*****@*****.**"], {"omg": "yes"})
    send_html_mail_jinja_mock.assert_called_with(
        "Mozilla Add-ons: Thanks for submitting a Firefox Add-on!",
        "devhub/email/submission.html",
        "devhub/email/submission.txt",
        {"omg": "yes"},
        recipient_list=["*****@*****.**"],
        from_email=settings.NOBODY_EMAIL,
        use_blacklist=False,
        perm_setting="individual_contact",
        headers={"Reply-To": settings.EDITORS_EMAIL},
    )