Files
tryton/tests/test_account_dunning.py
T
Cédric Krier 0c590ec211 Add final state to dunning
and rename done into waiting

issue7625
review74311002
2018-08-31 14:48:27 +02:00

31 lines
1.1 KiB
Python

# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import unittest
import doctest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import ModuleTestCase
from trytond.tests.test_tryton import doctest_teardown
from trytond.tests.test_tryton import doctest_checker
class AccountDunningTestCase(ModuleTestCase):
'Test AccountDunning module'
module = 'account_dunning'
def suite():
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
AccountDunningTestCase))
suite.addTests(doctest.DocFileSuite(
'scenario_account_dunning.rst',
tearDown=doctest_teardown, encoding='utf-8',
checker=doctest_checker,
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
suite.addTests(doctest.DocFileSuite(
'scenario_account_dunning_final.rst',
tearDown=doctest_teardown, encoding='utf-8',
checker=doctest_checker,
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
return suite