diff --git a/setup.py b/setup.py index 9ca4ceb7ca..f3642e5fa6 100644 --- a/setup.py +++ b/setup.py @@ -28,6 +28,7 @@ setup(name='trytond_stock_forecast', package_dir={'trytond.modules.stock_forecast': '.'}, packages=[ 'trytond.modules.stock_forecast', + 'trytond.modules.stock_forecast.tests', ], package_data={ 'trytond.modules.stock_forecast': info.get('xml', []) \ @@ -56,4 +57,6 @@ setup(name='trytond_stock_forecast', [trytond.modules] stock_forecast = trytond.modules.stock_forecast """, + test_suite='tests', + test_loader='trytond.test_loader:Loader', ) diff --git a/tests/__init__.py b/tests/__init__.py index 8d43eebfed..6a7efbfd41 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_stock_forecast import * +from test_stock_forecast import suite diff --git a/tests/test_stock_forecast.py b/tests/test_stock_forecast.py index 6568e03a48..6e39563c5c 100644 --- a/tests/test_stock_forecast.py +++ b/tests/test_stock_forecast.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')))