mirror of https://github.com/OCA/social.git
[FIX] mail_tracking_mass_mailing: Integration tests (#258)
Testing this addon failed if i.e. `mass_mailing_list_dynamic` was installed before. Moving tests to post-install mode fixes integration tests.pull/351/head
parent
2c060824f3
commit
281adea4df
|
@ -7,9 +7,9 @@
|
|||
{
|
||||
"name": "Mail tracking for mass mailing",
|
||||
"summary": "Improve mass mailing email tracking",
|
||||
"version": "10.0.1.0.0",
|
||||
"version": "10.0.1.0.1",
|
||||
"category": "Social Network",
|
||||
"website": "http://www.tecnativa.com",
|
||||
"website": "https://github.com/OCA/social",
|
||||
"author": "Tecnativa, "
|
||||
"Odoo Community Association (OCA)",
|
||||
"license": "AGPL-3",
|
||||
|
|
|
@ -6,12 +6,14 @@
|
|||
|
||||
import mock
|
||||
from odoo.tools import mute_logger
|
||||
from odoo.tests.common import TransactionCase
|
||||
from odoo.tests.common import at_install, post_install, TransactionCase
|
||||
|
||||
mock_send_email = ('odoo.addons.base.ir.ir_mail_server.'
|
||||
'IrMailServer.send_email')
|
||||
|
||||
|
||||
@at_install(False)
|
||||
@post_install(True)
|
||||
class TestMassMailing(TransactionCase):
|
||||
def setUp(self, *args, **kwargs):
|
||||
super(TestMassMailing, self).setUp(*args, **kwargs)
|
||||
|
|
Loading…
Reference in New Issue