Skip to content

Commit

Permalink
[FIX] intrastat*: Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
victoralmau committed Jun 14, 2022
1 parent 6e28dfc commit bb4ec2c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
16 changes: 16 additions & 0 deletions intrastat_base/tests/common.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2021 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


class IntrastatCommon(object):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
cls.chart_template_obj = cls.env["account.chart.template"]
cls.mail_obj = cls.env["mail.mail"]

cls.demo_user = cls.env.ref("base.user_demo")
cls.demo_company = cls.env.ref("base.main_company")

cls.shipping_cost = cls.env.ref("intrastat_base.shipping_costs_exclude")
7 changes: 0 additions & 7 deletions intrastat_product/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
from . import common
from . import common_purchase
from . import common_sale
from . import test_intrastat_product
from . import test_brexit
from . import test_company
from . import test_purchase_order
from . import test_sale_order

0 comments on commit bb4ec2c

Please sign in to comment.