diff --git a/.hgignore b/.hgignore index 87731bc..47c5feb 100644 --- a/.hgignore +++ b/.hgignore @@ -3,3 +3,4 @@ syntax: glob build/* dist/* mds_cashbook_planner.egg-info/* +__pycache__/* diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..4c25c51 --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# This file is part of the cashbook-planner from m-ds for Tryton. +# The COPYRIGHT file at the top level of this repository contains the +# full copyright notices and license terms. diff --git a/tests/planner.py b/tests/planner.py new file mode 100644 index 0000000..33e0f78 --- /dev/null +++ b/tests/planner.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# This file is part of the cashbook-planner from m-ds for Tryton. +# The COPYRIGHT file at the top level of this repository contains the +# full copyright notices and license terms. + +from trytond.tests.test_tryton import with_transaction +from trytond.pool import Pool +from trytond.transaction import Transaction +from trytond.exceptions import UserError +from datetime import date +from decimal import Decimal + + +class PlannerTestCase(object): + """ test planner + """ + +# end PlannerTestCase diff --git a/tests/test_module.py b/tests/test_module.py new file mode 100644 index 0000000..a7cd077 --- /dev/null +++ b/tests/test_module.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# This file is part of the cashbook-planner from m-ds for Tryton. +# 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 .planner import PlannerTestCase + + +class CashbookPlannerTestCase( + PlannerTestCase, + CashbookTestCase): + """ run all test from 'cashbook', add test for planner + """ + module = 'cashbook_planner' + +# end CashbookPlannerTestCase + + +del CashbookTestCase