trytond-product_sale_line_r.../tests/test_product_sale_line_relation.py
2017-06-20 13:45:43 +02:00

26 lines
957 B
Python

# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import unittest
import doctest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import ModuleTestCase
from trytond.tests.test_tryton import (doctest_setup, doctest_teardown,
doctest_checker)
class ProductSaleLineRelationTestCase(ModuleTestCase):
'Test Product Sale Line Relation module'
module = 'product_sale_line_relation'
def suite():
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
ProductSaleLineRelationTestCase))
suite.addTests(doctest.DocFileSuite(
'scenario_product_sale_line_relation.rst',
setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE,
checker=doctest_checker))
return suite