Commit 1d079f34 authored by Arnaud Fontaine's avatar Arnaud Fontaine

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

parent a04f45d2
No related merge requests found
......@@ -660,6 +660,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