diff --git a/setup.py b/setup.py index 5520c08b0d..1fb9243cf1 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ setup(name='trytond_project_revenue', package_dir={'trytond.modules.project_revenue': '.'}, packages=[ 'trytond.modules.project_revenue', + 'trytond.modules.project_revenue.tests', ], package_data={ 'trytond.modules.project_revenue': info.get('xml', []) \ @@ -56,4 +57,6 @@ setup(name='trytond_project_revenue', [trytond.modules] project_revenue = trytond.modules.project_revenue """, + test_suite='tests', + test_loader='trytond.test_loader:Loader', ) diff --git a/tests/__init__.py b/tests/__init__.py index 9be3adcdc3..7e7ed9ea21 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_project_revenue import * +from test_project_revenue import suite diff --git a/tests/test_project_revenue.py b/tests/test_project_revenue.py index 5a9b88940d..03ee364781 100644 --- a/tests/test_project_revenue.py +++ b/tests/test_project_revenue.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')))