diff --git a/setup.py b/setup.py index 8a16fb622c..40efce4408 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ setup(name='trytond_purchase', package_dir={'trytond.modules.purchase': '.'}, packages=[ 'trytond.modules.purchase', + 'trytond.modules.purchase.tests', ], package_data={ 'trytond.modules.purchase': info.get('xml', []) \ @@ -59,4 +60,6 @@ setup(name='trytond_purchase', [trytond.modules] purchase = trytond.modules.purchase """, + test_suite='tests', + test_loader='trytond.test_loader:Loader', ) diff --git a/tests/__init__.py b/tests/__init__.py index 761e0db55b..56a98e737b 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,4 @@ #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. -from test_purchase import * +from test_purchase import suite diff --git a/tests/test_purchase.py b/tests/test_purchase.py index 930749971d..517f1a8087 100644 --- a/tests/test_purchase.py +++ b/tests/test_purchase.py @@ -2,9 +2,6 @@ #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 logging -logging.basicConfig(level=logging.FATAL) - import sys, os DIR = os.path.abspath(os.path.normpath(os.path.join(__file__, '..', '..', '..', '..', '..', 'trytond')))