From e51abf589b04a35309382941cd3e2abd172fe6cd Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Sat, 2 Mar 2024 22:55:42 +0100 Subject: [PATCH] test: run tests from cashbook_investment --- tests/test_module.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/test_module.py b/tests/test_module.py index a7cd077..c408be5 100644 --- a/tests/test_module.py +++ b/tests/test_module.py @@ -3,18 +3,27 @@ # The COPYRIGHT file at the top level of this repository contains the # full copyright notices and license terms. -from trytond.modules.cashbook.tests.test_module import CashbookTestCase +from trytond.tests.test_tryton import activate_module +from trytond.modules.cashbook_investment.tests.test_module import \ + CashbookInvestmentTestCase from .planner import PlannerTestCase class CashbookPlannerTestCase( PlannerTestCase, - CashbookTestCase): - """ run all test from 'cashbook', add test for planner + CashbookInvestmentTestCase): + """ run all test from 'cashbook_investment', add test for planner """ module = 'cashbook_planner' + @classmethod + def setUpClass(cls): + """ activate modules + """ + super(CashbookPlannerTestCase, cls).setUpClass() + activate_module(['cashbook_investment']) + # end CashbookPlannerTestCase -del CashbookTestCase +del CashbookInvestmentTestCase