Mercurial > kallithea
comparison rhodecode/controllers/admin/settings.py @ 3140:105a0374faa1 beta
admin, email test: fix test for test_email recipients
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 02 Jan 2013 13:56:40 +0100 |
parents | 6104dfd35b16 |
children | 1e7839c0930a |
comparison
equal
deleted
inserted
replaced
3139:99d32d5d70db | 3140:105a0374faa1 |
---|---|
334 | 334 |
335 test_email_html_body = EmailNotificationModel()\ | 335 test_email_html_body = EmailNotificationModel()\ |
336 .get_email_tmpl(EmailNotificationModel.TYPE_DEFAULT, | 336 .get_email_tmpl(EmailNotificationModel.TYPE_DEFAULT, |
337 body=test_email_body) | 337 body=test_email_body) |
338 | 338 |
339 recipients = [test_email] if [test_email] else None | 339 recipients = [test_email] if test_email else None |
340 | 340 |
341 run_task(tasks.send_email, recipients, test_email_subj, | 341 run_task(tasks.send_email, recipients, test_email_subj, |
342 test_email_body, test_email_html_body) | 342 test_email_body, test_email_html_body) |
343 | 343 |
344 h.flash(_('Email task created'), category='success') | 344 h.flash(_('Email task created'), category='success') |