diff --git a/setup.py b/setup.py index cb8d058257..c0b6422223 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ setup(name='trytond_product_cost_history', package_dir={'trytond.modules.product_cost_history': '.'}, packages=[ 'trytond.modules.product_cost_history', + 'trytond.modules.product_cost_history.tests', ], package_data={ 'trytond.modules.product_cost_history': info.get('xml', []) \ @@ -58,4 +59,6 @@ setup(name='trytond_product_cost_history', [trytond.modules] product_cost_history = trytond.modules.product_cost_history """, + test_suite='tests', + test_loader='trytond.test_loader:Loader', ) diff --git a/tests/__init__.py b/tests/__init__.py index 4fb06c215c..ec99a1e1f7 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_product_cost_history import * +from test_product_cost_history import suite diff --git a/tests/test_product_cost_history.py b/tests/test_product_cost_history.py index e43523a0b9..7b1a7fbf42 100644 --- a/tests/test_product_cost_history.py +++ b/tests/test_product_cost_history.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')))