mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[14.0][IMP] intrastat_*: Add tests for base and for sale flows
This commit is contained in:
committed by
Alexis de Lattre
parent
e08641e52e
commit
3ff1bca7e0
@@ -52,11 +52,6 @@ class IntrastatCommon(object):
|
|||||||
|
|
||||||
cls.shipping_cost = cls.env.ref("intrastat_base.shipping_costs_exclude")
|
cls.shipping_cost = cls.env.ref("intrastat_base.shipping_costs_exclude")
|
||||||
cls._load_test_declaration()
|
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
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
|||||||
@@ -7,6 +7,15 @@ from .common import IntrastatCommon
|
|||||||
class TestIntrastatBase(IntrastatCommon):
|
class TestIntrastatBase(IntrastatCommon):
|
||||||
"""Tests for this module"""
|
"""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):
|
def test_company(self):
|
||||||
# add 'Demo user' to intrastat_remind_user_ids
|
# add 'Demo user' to intrastat_remind_user_ids
|
||||||
self.demo_company.write(
|
self.demo_company.write(
|
||||||
|
|||||||
Reference in New Issue
Block a user