This commit is contained in:
Frederik Jaeckel 2024-02-24 15:36:15 +01:00
parent 9b517904d2
commit cd79072e2c
4 changed files with 43 additions and 0 deletions

View file

@ -3,3 +3,4 @@ syntax: glob
build/*
dist/*
mds_cashbook_planner.egg-info/*
__pycache__/*

4
tests/__init__.py Normal file
View 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
View 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
View 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