Files
tryton/modules/account_statement/tests/test_account_statement.py
T

35 lines
1.4 KiB
Python
Raw Normal View History

2014-12-02 12:54:50 +01:00
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
2009-06-28 19:00:54 +02:00
import unittest
2011-04-10 20:59:25 +02:00
import doctest
2009-06-28 19:00:54 +02:00
import trytond.tests.test_tryton
2015-01-27 18:13:04 +01:00
from trytond.tests.test_tryton import ModuleTestCase
2016-08-26 09:58:31 +02:00
from trytond.tests.test_tryton import doctest_teardown
2016-03-05 12:33:11 +01:00
from trytond.tests.test_tryton import doctest_checker
2009-06-28 19:00:54 +02:00
from trytond.modules.company.tests import CompanyTestMixin
2009-06-28 19:00:54 +02:00
class AccountStatementTestCase(CompanyTestMixin, ModuleTestCase):
2014-01-12 19:59:26 +01:00
'Test AccountStatement module'
2015-01-27 18:13:04 +01:00
module = 'account_statement'
2012-04-03 20:06:27 +02:00
2009-06-28 19:00:54 +02:00
def suite():
2010-03-04 14:05:03 +01:00
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
AccountStatementTestCase))
2011-04-10 20:59:25 +02:00
suite.addTests(doctest.DocFileSuite('scenario_account_statement.rst',
2016-08-26 09:58:31 +02:00
tearDown=doctest_teardown, encoding='utf-8',
2016-03-05 12:33:11 +01:00
checker=doctest_checker,
2011-09-14 12:45:15 +02:00
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
suite.addTests(doctest.DocFileSuite('scenario_statement_origin.rst',
tearDown=doctest_teardown, encoding='utf-8',
checker=doctest_checker,
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
suite.addTests(doctest.DocFileSuite(
'scenario_statement_origin_invoices.rst',
tearDown=doctest_teardown, encoding='utf-8',
checker=doctest_checker,
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
2010-03-04 14:05:03 +01:00
return suite