trytond-product_cost_plan/tests/test_product_cost_plan.py

31 lines
1.1 KiB
Python
Raw Normal View History

2013-10-17 10:59:15 +02:00
#!/usr/bin/env python
# The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms.
import unittest
2014-01-04 17:53:24 +01:00
import doctest
2013-10-17 10:59:15 +02:00
import trytond.tests.test_tryton
2016-07-12 13:17:36 +02:00
from trytond.tests.test_tryton import ModuleTestCase
2018-04-25 15:44:48 +02:00
from trytond.tests.test_tryton import doctest_teardown
2016-07-12 13:17:36 +02:00
from trytond.tests.test_tryton import doctest_checker
2013-10-17 10:59:15 +02:00
2018-04-25 15:44:48 +02:00
class ProductCostPlanTestCase(ModuleTestCase):
2014-11-05 09:28:18 +01:00
'Test module'
2016-07-12 13:17:36 +02:00
module = 'product_cost_plan'
2013-10-17 10:59:15 +02:00
def suite():
suite = trytond.tests.test_tryton.suite()
2018-04-25 15:44:48 +02:00
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
ProductCostPlanTestCase))
suite.addTests(doctest.DocFileSuite('scenario_product_cost_plan.rst',
tearDown=doctest_teardown, encoding='utf-8',
2016-07-12 13:17:36 +02:00
checker=doctest_checker,
2014-01-04 17:53:24 +01:00
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
2018-04-25 15:44:48 +02:00
suite.addTests(
doctest.DocFileSuite('scenario_product_cost_plan_extras_depend.rst',
tearDown=doctest_teardown, encoding='utf-8',
2016-07-12 13:17:36 +02:00
checker=doctest_checker,
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
2013-10-17 10:59:15 +02:00
return suite