[FIX] portal: add test email address for outgoing emails sent during tests

bzr revid: odo@openerp.com-20121008130245-7n1ed3i2ez9bzniy
This commit is contained in:
Olivier Dony 2012-10-08 15:02:45 +02:00
parent 43595fbeb1
commit d541205651
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ class test_portal(test_mail.TestMailMockups):
self.user_chell = self.res_users.browse(cr, uid, self.user_chell_id)
self.partner_chell_id = self.user_chell.partner_id.id
# Set an email address for the user running the tests, used as Sender for outgoing mails
self.res_users.write(cr, uid, uid, {'email': 'test@localhost'})
def test_00_access_rights(self):
""" Test basic mail_message and mail_group access rights for portal users. """
cr, uid = self.cr, self.uid