From 86a9b7893e6193faf2388e859774aa077499a815 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 2 Nov 2016 11:45:29 +0100 Subject: [PATCH] [IMP] tests: use long message in case of error --- openerp/tests/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openerp/tests/common.py b/openerp/tests/common.py index b28e5a832e5..796605c6d81 100644 --- a/openerp/tests/common.py +++ b/openerp/tests/common.py @@ -80,11 +80,13 @@ def post_install(flag): class BaseCase(unittest2.TestCase): """ Subclass of TestCase for common OpenERP-specific code. - + This class is abstract and expects self.registry, self.cr and self.uid to be initialized by subclasses. """ + longMessage = True # more verbose error message by default: https://www.odoo.com/r/Vmh + def cursor(self): return self.registry.cursor()