[IMP] tests: use long message in case of error

This commit is contained in:
Christophe Simonis 2016-11-02 11:45:29 +01:00
parent d406314638
commit 86a9b7893e
1 changed files with 3 additions and 1 deletions

View File

@ -80,11 +80,13 @@ def post_install(flag):
class BaseCase(unittest2.TestCase): class BaseCase(unittest2.TestCase):
""" """
Subclass of TestCase for common OpenERP-specific code. Subclass of TestCase for common OpenERP-specific code.
This class is abstract and expects self.registry, self.cr and self.uid to be This class is abstract and expects self.registry, self.cr and self.uid to be
initialized by subclasses. initialized by subclasses.
""" """
longMessage = True # more verbose error message by default: https://www.odoo.com/r/Vmh
def cursor(self): def cursor(self):
return self.registry.cursor() return self.registry.cursor()