From 94b990054eb5af14345342645e4b4e7a2bdd8263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 12 Mar 2010 17:49:39 +0100 Subject: [PATCH] Add test_suite in setup.py --- setup.py | 3 +++ tests/__init__.py | 2 +- tests/test_project.py | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 991dc70eb8..2dd3fd1651 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ setup(name='trytond_project', package_dir={'trytond.modules.project': '.'}, packages=[ 'trytond.modules.project', + 'trytond.modules.project.tests', ], package_data={ 'trytond.modules.project': info.get('xml', []) \ @@ -57,4 +58,6 @@ setup(name='trytond_project', [trytond.modules] project = trytond.modules.project """, + test_suite='tests', + test_loader='trytond.test_loader:Loader', ) diff --git a/tests/__init__.py b/tests/__init__.py index 395d003b39..01c4a1b242 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_project import * +from test_project import suite diff --git a/tests/test_project.py b/tests/test_project.py index ad17bfb07b..0fe889e421 100644 --- a/tests/test_project.py +++ b/tests/test_project.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')))