Files
tryton/modules/analytic_purchase/tests/test_analytic_purchase.py
T

24 lines
893 B
Python
Raw Normal View History

2014-12-02 12:54:59 +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-29 09:42:25 +02:00
import unittest
2015-02-26 12:52:20 +01:00
import doctest
2009-06-29 09:42:25 +02:00
import trytond.tests.test_tryton
2015-01-27 18:13:09 +01:00
from trytond.tests.test_tryton import ModuleTestCase
2016-08-26 09:58:43 +02:00
from trytond.tests.test_tryton import doctest_teardown
2016-03-08 22:25:44 +01:00
from trytond.tests.test_tryton import doctest_checker
2009-06-29 09:42:25 +02:00
2015-01-27 18:13:09 +01:00
class AnalyticPurchaseTestCase(ModuleTestCase):
2014-01-12 19:59:31 +01:00
'Test AnalyticPurchase module'
2015-01-27 18:13:09 +01:00
module = 'analytic_purchase'
2012-04-03 20:06:39 +02:00
2009-06-29 09:42:25 +02:00
def suite():
2010-03-04 14:06:57 +01:00
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
AnalyticPurchaseTestCase))
2015-02-26 12:52:20 +01:00
suite.addTests(doctest.DocFileSuite('scenario_analytic_purchase.rst',
2016-08-26 09:58:43 +02:00
tearDown=doctest_teardown, encoding='utf-8',
2016-03-08 22:25:44 +01:00
checker=doctest_checker,
2015-02-26 12:52:20 +01:00
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
2010-03-04 14:06:57 +01:00
return suite