Commit 54072a30 authored by Vincent Pelletier's avatar Vincent Pelletier

Small improvements in test error rendering.

  Use "%r" instead of "'%s'".
  Use "%r" instead of "%s".
  Explain a bit more what each result part contains.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25302 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 69733f8d
...@@ -186,18 +186,18 @@ class TestTranslation(ERP5TypeTestCase): ...@@ -186,18 +186,18 @@ class TestTranslation(ERP5TypeTestCase):
if error: if error:
for key, item_list in error_dict.items(): for key, item_list in error_dict.items():
if len(item_list) != 0: if len(item_list) != 0:
self.logMessage('\n%s' % key.encode('utf-8')) self.logMessage('\n%r' % key.encode('utf-8'))
self.logMessage('\t### Potential problems ###') self.logMessage('\t### Conflicting workflow with common states (ie, what user can see) ###')
for item in item_list: for item in item_list:
# XXX Improve rendering # XXX Improve rendering
self.logMessage( self.logMessage(
"\t'%s'\t'%s'\t'%s'\t'%s'" % \ "\t%r\t%r\t%r\t%r" % \
item) item)
self.logMessage('\n\t### Because of these ###') self.logMessage('\n\t### All conflicting workflows (ie, problems asking to happen) ###')
for item in result_dict[key]: for item in result_dict[key]:
# XXX Improve rendering # XXX Improve rendering
self.logMessage( self.logMessage(
"\t'%s'\t'%s'\t'%s'" % \ "\t%r\t%r\t%r" % \
item) item)
self.fail(self.message) self.fail(self.message)
......
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