From 23fe138b98a90dd0e4e3b8253e352bd6e059c076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 12 Mar 2010 17:49:41 +0100 Subject: [PATCH] Add test_suite in setup.py --- setup.py | 3 +++ tests/__init__.py | 2 +- tests/test_stock_forecast.py | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) 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')))