Commit 00a2658e authored by Jérome Perrin's avatar Jérome Perrin

CodingStyleTestCase: use standard unittest error reporting

It produces almost same visual result
parent 7cd040bf
......@@ -94,10 +94,7 @@ class CodingStyleTestCase(ERP5TypeTestCase):
if getattr(aq_base(document), 'checkConsistency', None) is not None:
message_list.extend(document.checkConsistency())
# Return results
if len(message_list):
raise self.failureException('\n'.join(map(lambda x: repr(x), message_list)))
self.assertEqual([], message_list)
def test_PythonSourceCode(self):
"""test python script from the tested business templates.
......@@ -111,4 +108,3 @@ class CodingStyleTestCase(ERP5TypeTestCase):
for business_template in self.portal.portal_templates.contentValues():
if business_template.getTitle() in self.getTestedBusinessTemplateList():
self.assertEqual([], business_template.BusinessTemplate_getPythonSourceCodeMessageList())
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment