diff --git a/setup.py b/setup.py index c4cdfa97b0..e7c64d6188 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ setup(name='trytond_account_invoice_line_standalone', package_dir={'trytond.modules.account_invoice_line_standalone': '.'}, packages=[ 'trytond.modules.account_invoice_line_standalone', + 'trytond.modules.account_invoice_line_standalone.tests', ], package_data={ 'trytond.modules.account_invoice_line_standalone': info.get('xml', []) \ @@ -57,4 +58,6 @@ setup(name='trytond_account_invoice_line_standalone', [trytond.modules] account_invoice_line_standalone = trytond.modules.account_invoice_line_standalone """, + test_suite='tests', + test_loader='trytond.test_loader:Loader', ) diff --git a/tests/__init__.py b/tests/__init__.py index 89ed3f38ac..ea09190c6b 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_invoice_line_standalone import * +from test_account_invoice_line_standalone import suite diff --git a/tests/test_account_invoice_line_standalone.py b/tests/test_account_invoice_line_standalone.py index a12fe0f5d9..8b048517ff 100644 --- a/tests/test_account_invoice_line_standalone.py +++ b/tests/test_account_invoice_line_standalone.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')))