Commit f25d0228 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Add unit test helper to get the checkConsistency() error messages as string.

parent 52bad5f8
......@@ -667,6 +667,10 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
return ResponseWrapper(response, outstream, path)
def getConsistencyMessageList(self, obj):
return sorted([ str(message.getMessage())
for message in obj.checkConsistency() ])
class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
def getPortalName(self):
......
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