diff --git a/mis_builder/tests/test_data_sources.py b/mis_builder/tests/test_data_sources.py index e6f2231d6..deebc9046 100644 --- a/mis_builder/tests/test_data_sources.py +++ b/mis_builder/tests/test_data_sources.py @@ -35,6 +35,14 @@ def _create_move(self, date, amount, debit_acc, credit_acc): move._post() return move + @classmethod + def setUpClass(cls): + super().setUpClass() + # Perform the tests with a brand new company to avoid intrusive data from other + # modules added to the default company + cls.company = cls.env["res.company"].create({"name": "Company Test"}) + cls.env.user.company_id = cls.company + def setUp(self): super().setUp() self.account_model = self.env["account.account"]