From 8d649569f07438635259ef0654535ca2eed5db16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 12 Mar 2010 17:49:32 +0100 Subject: [PATCH] Add test_suite in setup.py --- setup.py | 3 +++ tests/__init__.py | 2 +- tests/test_account_product.py | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index bf00181ba6..92f314770a 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ setup(name='trytond_account_product', package_dir={'trytond.modules.account_product': '.'}, packages=[ 'trytond.modules.account_product', + 'trytond.modules.account_product.tests', ], package_data={ 'trytond.modules.account_product': info.get('xml', []) \ @@ -58,4 +59,6 @@ setup(name='trytond_account_product', [trytond.modules] account_product = trytond.modules.account_product """, + test_suite='tests', + test_loader='trytond.test_loader:Loader', ) diff --git a/tests/__init__.py b/tests/__init__.py index 5a37df5da8..5c8aef2757 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_account_product import * +from test_account_product import suite diff --git a/tests/test_account_product.py b/tests/test_account_product.py index 7f93907987..0cd8cb4306 100644 --- a/tests/test_account_product.py +++ b/tests/test_account_product.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')))