diff --git a/setup.py b/setup.py index aef94f5f22..5f9e659fa2 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ setup(name='trytond_party', package_dir={'trytond.modules.party': '.'}, packages=[ 'trytond.modules.party', + 'trytond.modules.party.tests', ], package_data={ 'trytond.modules.party': info.get('xml', []) \ @@ -62,4 +63,6 @@ setup(name='trytond_party', [trytond.modules] party = trytond.modules.party """, + test_suite='tests', + test_loader='trytond.test_loader:Loader', ) diff --git a/tests/__init__.py b/tests/__init__.py index bc87a4f912..1c2ce41fab 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_party import * +from test_party import suite diff --git a/tests/test_party.py b/tests/test_party.py index 888cf38422..4d145e9282 100644 --- a/tests/test_party.py +++ b/tests/test_party.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')))