2014-12-02 12:54:57 +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:42:16 +02:00
|
|
|
import unittest
|
2015-02-15 13:11:01 +01:00
|
|
|
import doctest
|
2009-06-28 19:42:16 +02:00
|
|
|
import trytond.tests.test_tryton
|
2015-01-27 18:13:08 +01:00
|
|
|
from trytond.tests.test_tryton import ModuleTestCase
|
2016-08-26 09:58:41 +02:00
|
|
|
from trytond.tests.test_tryton import doctest_teardown
|
2016-02-29 22:43:13 +01:00
|
|
|
from trytond.tests.test_tryton import doctest_checker
|
2009-06-28 19:42:16 +02:00
|
|
|
|
|
|
|
|
|
2015-01-27 18:13:08 +01:00
|
|
|
class AnalyticInvoiceTestCase(ModuleTestCase):
|
2014-01-12 19:59:30 +01:00
|
|
|
'Test AnalyticInvoice module'
|
2015-01-27 18:13:08 +01:00
|
|
|
module = 'analytic_invoice'
|
2019-01-17 17:22:22 +01:00
|
|
|
extras = ['account_asset']
|
2015-01-02 16:07:56 +01:00
|
|
|
|
2012-04-03 20:06:35 +02:00
|
|
|
|
2009-06-28 19:42:16 +02:00
|
|
|
def suite():
|
2010-03-04 14:06:45 +01:00
|
|
|
suite = trytond.tests.test_tryton.suite()
|
|
|
|
|
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
|
|
|
|
|
AnalyticInvoiceTestCase))
|
2015-02-16 18:33:55 +01:00
|
|
|
suite.addTests(doctest.DocFileSuite('scenario_analytic_invoice.rst',
|
2016-08-26 09:58:41 +02:00
|
|
|
tearDown=doctest_teardown, encoding='utf-8',
|
2016-02-29 22:43:13 +01:00
|
|
|
checker=doctest_checker,
|
2015-02-15 13:11:01 +01:00
|
|
|
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
|
2016-10-12 22:36:54 +02:00
|
|
|
suite.addTests(doctest.DocFileSuite('scenario_analytic_invoice_asset.rst',
|
|
|
|
|
tearDown=doctest_teardown, encoding='utf-8',
|
|
|
|
|
checker=doctest_checker,
|
|
|
|
|
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
|
2010-03-04 14:06:45 +01:00
|
|
|
return suite
|