From 356a46c8a4d90ffe12f56d2d4dce1b857e1eded0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 12 Mar 2010 17:49:36 +0100 Subject: [PATCH] Add test_suite in setup.py --- setup.py | 3 +++ tests/__init__.py | 2 +- tests/test_dashboard.py | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 9f844b3b3d..307d587f22 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ setup(name='trytond_dashboard', package_dir={'trytond.modules.dashboard': '.'}, packages=[ 'trytond.modules.dashboard', + 'trytond.modules.dashboard.tests', ], package_data={ 'trytond.modules.dashboard': info.get('xml', []) \ @@ -56,4 +57,6 @@ setup(name='trytond_dashboard', [trytond.modules] dashboard = trytond.modules.dashboard """, + test_suite='tests', + test_loader='trytond.test_loader:Loader', ) diff --git a/tests/__init__.py b/tests/__init__.py index 8be071b86c..81bf105aa2 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_dashboard import * +from test_dashboard import suite diff --git a/tests/test_dashboard.py b/tests/test_dashboard.py index bc701d6dbf..ce3a0b6bab 100644 --- a/tests/test_dashboard.py +++ b/tests/test_dashboard.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')))