[14.0][IMP] intrastat_*: Add tests for base and for sale flows

This commit is contained in:
Denis Roussel
2021-10-24 12:24:14 +02:00
parent f3573088e5
commit e34cf22462
9 changed files with 337 additions and 5 deletions

View File

@@ -7,6 +7,15 @@ from .common import IntrastatCommon
class TestIntrastatBase(IntrastatCommon):
"""Tests for this module"""
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.declaration_test_obj = cls.env["intrastat.declaration.test"]
cls._load_xml("intrastat_base", "tests/data/mail_template.xml")
cls.mail_template_id = (
"intrastat_base.base_intrastat_product_reminder_email_template"
)
def test_company(self):
# add 'Demo user' to intrastat_remind_user_ids
self.demo_company.write(