trytond-sale_margin/tests/test_sale_margin.py

25 lines
850 B
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
2015-12-01 11:53:34 +01:00
from trytond.tests.test_tryton import doctest_setup, doctest_teardown
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))
2015-12-01 11:53:34 +01:00
suite.addTests(doctest.DocFileSuite(
'scenario_sale_margin.rst',
setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
return suite