From 7da35a38eeca0b02885488f8ffefd6eb211a1704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20D=C3=ADaz=20Miralles?= Date: Mon, 19 Sep 2022 12:56:36 +0200 Subject: [PATCH] Migrate to 6.4 --- setup.py | 2 +- tests/__init__.py | 1 - tests/{test_location.py => test_module.py} | 7 +------ tryton.cfg | 2 +- 4 files changed, 3 insertions(+), 9 deletions(-) rename tests/{test_location.py => test_module.py} (62%) diff --git a/setup.py b/setup.py index 2570ee3..e0e2adf 100644 --- a/setup.py +++ b/setup.py @@ -122,6 +122,6 @@ setup(name=name, stock_location_notebook = trytond.modules.stock_location_notebook """, test_suite='tests', - test_loader='trytond.test_loader:Loader', + tests_require=tests_require, ) diff --git a/tests/__init__.py b/tests/__init__.py index a57375e..17f4e91 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,3 +1,2 @@ # The COPYRIGHT file at the top level of this repository contains the full # copyright notices and license terms. -from .test_location import suite diff --git a/tests/test_location.py b/tests/test_module.py similarity index 62% rename from tests/test_location.py rename to tests/test_module.py index 9ebb078..e5b2b43 100644 --- a/tests/test_location.py +++ b/tests/test_module.py @@ -1,7 +1,5 @@ # The COPYRIGHT file at the top level of this repository contains the full # copyright notices and license terms. -import unittest -import trytond.tests.test_tryton from trytond.tests.test_tryton import ModuleTestCase @@ -13,7 +11,4 @@ class LocationTestCase(ModuleTestCase): super(LocationTestCase, self).setUp() -def suite(): - suite = trytond.tests.test_tryton.suite() - suite.addTests(unittest.TestLoader().loadTestsFromTestCase(LocationTestCase)) - return suite +del ModuleTestCase diff --git a/tryton.cfg b/tryton.cfg index 4e8cae7..51a24a8 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -1,5 +1,5 @@ [tryton] -version=6.0.0 +version=6.4.0 depends: ir res