Replace test setuptools command by unittest discover

issue9215
review389851002
This commit is contained in:
Cédric Krier committed 2022-04-16 18:30:16 +02:00
1 parent acaf383dac
commit d3b79543bc
4 files changed
+6 -19

No files matched your search

-7
View File
@@ -1,9 +1,2 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
try:
from trytond.modules.account_eu.tests.test_account_eu import suite
except ImportError:
from .test_account_eu import suite
__all__ = ['suite']
@@ -1,11 +1,8 @@
# 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
from trytond.modules.company.tests import CompanyTestMixin
from trytond.tests.test_tryton import ModuleTestCase
from trytond.tests.test_tryton import suite as test_suite
class AccountEuTestCase(CompanyTestMixin, ModuleTestCase):
@@ -13,8 +10,4 @@ class AccountEuTestCase(CompanyTestMixin, ModuleTestCase):
module = 'account_eu'
def suite():
suite = test_suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
AccountEuTestCase))
return suite
del ModuleTestCase