trytond-sale_margin/tests/test_sale_margin.py

30 lines
1.1 KiB
Python
Raw Normal View History

2015-12-01 11:19:39 +01:00
# This file is part of the sale_margin module for Tryton.
# The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms.
2012-07-24 11:56:39 +02:00
import unittest
2015-12-01 11:53:34 +01:00
import doctest
2012-07-24 11:56:39 +02:00
import trytond.tests.test_tryton
2015-12-01 11:19:39 +01:00
from trytond.tests.test_tryton import ModuleTestCase
2016-11-22 13:38:13 +01:00
from trytond.tests.test_tryton import doctest_teardown
2016-03-30 00:40:50 +02:00
from trytond.tests.test_tryton import doctest_checker
2013-04-26 15:00:04 +02:00
2012-07-24 11:56:39 +02:00
2015-12-01 11:19:39 +01:00
class SaleMarginTestCase(ModuleTestCase):
2014-11-05 17:17:48 +01:00
'Test Sale Margin module'
2015-12-01 11:19:39 +01:00
module = 'sale_margin'
2012-07-24 11:56:39 +02:00
def suite():
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
SaleMarginTestCase))
2017-01-23 23:22:50 +01:00
suite.addTests(doctest.DocFileSuite('scenario_sale_margin.rst',
2016-11-22 13:38:13 +01:00
tearDown=doctest_teardown, encoding='utf-8',
2017-01-23 23:22:50 +01:00
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE,
checker=doctest_checker))
suite.addTests(doctest.DocFileSuite('scenario_sale_margin_unit_price.rst',
tearDown=doctest_teardown, encoding='utf-8',
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE,
checker=doctest_checker))
2015-12-01 11:53:34 +01:00
return suite