diff --git a/setup.py b/setup.py index 8b6b44f444..e85c48b424 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ setup(name='trytond_stock_supply_day', package_dir={'trytond.modules.stock_supply_day': '.'}, packages=[ 'trytond.modules.stock_supply_day', + 'trytond.modules.stock_supply_day.tests', ], package_data={ 'trytond.modules.stock_supply_day': info.get('xml', []) \ @@ -57,4 +58,6 @@ setup(name='trytond_stock_supply_day', [trytond.modules] stock_supply_day = trytond.modules.stock_supply_day """, + test_suite='tests', + test_loader='trytond.test_loader:Loader', ) diff --git a/tests/__init__.py b/tests/__init__.py index ff2a9e5696..4b78b67638 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_supply_day import * +from test_stock_supply_day import suite diff --git a/tests/test_stock_supply_day.py b/tests/test_stock_supply_day.py index 9b52a48517..144a06874c 100644 --- a/tests/test_stock_supply_day.py +++ b/tests/test_stock_supply_day.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')))