Ejemplo n.º 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: Your add-on has been submitted to'
         ' addons.mozilla.org!'),
        'devhub/email/submission.html',
        'devhub/email/submission.txt', {'omg': 'yes'},
        recipient_list=['*****@*****.**'],
        from_email=settings.ADDONS_EMAIL,
        use_deny_list=False,
        perm_setting='individual_contact')
Ejemplo n.º 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})
Ejemplo n.º 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})
Ejemplo n.º 4
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: Your add-on has been submitted to'
         ' addons.mozilla.org!'),
        'devhub/email/submission.html',
        'devhub/email/submission.txt',
        {'omg': 'yes'},
        recipient_list=['*****@*****.**'],
        from_email=settings.NOBODY_EMAIL,
        use_deny_list=False,
        perm_setting='individual_contact')