diff --git a/setup.py b/setup.py index 8213cad..35f0ea8 100644 --- a/setup.py +++ b/setup.py @@ -122,7 +122,4 @@ setup(name=name, [trytond.modules] account_invoice_line_sale_info = trytond.modules.account_invoice_line_sale_info """, - test_suite='tests', - test_loader='trytond.test_loader:Loader', - tests_require=tests_require, ) diff --git a/tests/__init__.py b/tests/__init__.py index 1372a6b..d70b900 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,5 +1,2 @@ # The COPYRIGHT file at the top level of this repository contains # the full copyright notices and license terms. -from .test_account_invoice_line_sale_info import suite - -__all__ = ['suite'] diff --git a/tests/test_account_invoice_line_sale_info.py b/tests/test_account_invoice_line_sale_info.py deleted file mode 100644 index e854da0..0000000 --- a/tests/test_account_invoice_line_sale_info.py +++ /dev/null @@ -1,27 +0,0 @@ -# The COPYRIGHT file at the top level of this repository contains -# the full copyright notices and license terms. -import unittest - -import doctest - -from trytond.tests.test_tryton import ModuleTestCase -from trytond.tests.test_tryton import suite as test_suite -from trytond.tests.test_tryton import doctest_teardown -from trytond.tests.test_tryton import doctest_checker - - -class AccountInvoiceLineSaleInfoTestCase(ModuleTestCase): - """Test Account Invoice Line Sale Info module""" - module = 'account_invoice_line_sale_info' - - -def suite(): - suite = test_suite() - suite.addTests(unittest.TestLoader().loadTestsFromTestCase( - AccountInvoiceLineSaleInfoTestCase)) - suite.addTests(doctest.DocFileSuite( - 'scenario_account_invoice_line_sale_info.rst', - tearDown=doctest_teardown, encoding='utf-8', - checker=doctest_checker, - optionflags=doctest.REPORT_ONLY_FIRST_FAILURE)) - return suite diff --git a/tests/test_module.py b/tests/test_module.py new file mode 100644 index 0000000..ea3e385 --- /dev/null +++ b/tests/test_module.py @@ -0,0 +1,11 @@ +# The COPYRIGHT file at the top level of this repository contains +# the full copyright notices and license terms. +from trytond.tests.test_tryton import ModuleTestCase + + +class AccountInvoiceLineSaleInfoTestCase(ModuleTestCase): + """Test Account Invoice Line Sale Info module""" + module = 'account_invoice_line_sale_info' + + +del ModuleTestCase diff --git a/tests/test_scenario.py b/tests/test_scenario.py new file mode 100644 index 0000000..10388fe --- /dev/null +++ b/tests/test_scenario.py @@ -0,0 +1,7 @@ +# The COPYRIGHT file at the top level of this repository contains +# the full copyright notices and license terms. +from trytond.tests.test_tryton import load_doc_tests + + +def load_tests(*args, **kwargs): + return load_doc_tests(__name__, __file__, *args, **kwargs) diff --git a/tryton.cfg b/tryton.cfg index 5aa6f2a..ccbed37 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -1,5 +1,5 @@ [tryton] -version=6.0.0 +version=6.4.0 depends: ir res