This a the patch that will be applied to all modules following
http://codereview.appspot.com/248043/show

Please review this at http://codereview.appspot.com/467042/show

Affected files:
  M setup.py
  M tests/__init__.py
  M tests/test_party.py


Index: setup.py
===================================================================
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,7 @@
     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 @@
     [trytond.modules]
     party = trytond.modules.party
     """,
+    test_suite='tests',
+    test_loader='trytond.test_loader:Loader',
 )
Index: tests/__init__.py
===================================================================
--- 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
Index: tests/test_party.py
===================================================================
--- 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')))



-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpJhwwH5Pfdq.pgp
Description: PGP signature

Reply via email to