add test
This commit is contained in:
parent
9b517904d2
commit
cd79072e2c
4 changed files with 43 additions and 0 deletions
|
@ -3,3 +3,4 @@ syntax: glob
|
|||
build/*
|
||||
dist/*
|
||||
mds_cashbook_planner.egg-info/*
|
||||
__pycache__/*
|
||||
|
|
4
tests/__init__.py
Normal file
4
tests/__init__.py
Normal file
|
@ -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.
|
18
tests/planner.py
Normal file
18
tests/planner.py
Normal file
|
@ -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
|
20
tests/test_module.py
Normal file
20
tests/test_module.py
Normal file
|
@ -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
|
Loading…
Reference in a new issue