[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
committed by Alexis de Lattre
parent e08641e52e
commit 3ff1bca7e0
2 changed files with 9 additions and 5 deletions

View File

@@ -52,11 +52,6 @@ class IntrastatCommon(object):
cls.shipping_cost = cls.env.ref("intrastat_base.shipping_costs_exclude")
cls._load_test_declaration()
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"
)
@classmethod
def tearDownClass(cls):

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(