[FIX] test_mail: please bring back our send method !
A patched method was not unpatched. Which triggered issues in a staging master branch trying to untie a bit mail tests. closes odoo/odoo#40099 X-original-commit: 5dbf4c56765c3661eb2dca24e90bc0b420918e9a Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
This commit is contained in:
committed by
fw-bot
parent
f52bcddccc
commit
9ad3564ac9
@@ -97,6 +97,8 @@ class TestMailRace(common.TransactionCase, mail_common.MockEmails):
|
||||
self.assertEqual(notif.notification_status, 'sent')
|
||||
|
||||
# some cleaning since we commited the cr
|
||||
self.env['ir.mail_server']._revert_method('send_email')
|
||||
|
||||
notif.unlink()
|
||||
message.unlink()
|
||||
mail.unlink()
|
||||
|
||||
Reference in New Issue
Block a user