From 656cb5753b39622b75e3ce7f0b9e2b1aa157ac34 Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Sun, 19 Dec 2010 22:06:27 +0200 Subject: [PATCH] test_reports: aesthetic improvements for the test_report_action bzr revid: p_christ@hol.gr-20101219200627-7pju2glqrs53631u --- bin/tools/test_reports.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/tools/test_reports.py b/bin/tools/test_reports.py index e82df1b..23076a0 100644 --- a/bin/tools/test_reports.py +++ b/bin/tools/test_reports.py @@ -93,7 +93,7 @@ def try_report(cr, uid, rname, ids, data=None, context=None, our_module=None): log.warning("Report %s produced a \"%s\" chunk, cannot examine it", rname, res_format) return False - log.log(netsvc.logging.TEST, "Report %s produced correctly.", rname) + log.log(netsvc.logging.TEST, " + Report %s produced correctly.", rname) return True def try_report_action(cr, uid, action_id, active_model=None, active_ids=None, @@ -245,9 +245,9 @@ def try_report_action(cr, uid, action_id, active_model=None, active_ids=None, res = None while buttons and not res: b = buttons.pop() - log_test("in the %s form, I will press the %s button.", action_name, b['string']) + log_test("in the \"%s\" form, I will press the \"%s\" button.", action_name, b['string']) if not b['type']: - log_test("the %s button has no type, cannot use it", b['string']) + log_test("the \"%s\" button has no type, cannot use it", b['string']) continue if b['type'] == 'object': #there we are! press the button! @@ -258,7 +258,7 @@ def try_report_action(cr, uid, action_id, active_model=None, active_ids=None, res = fn(cr, uid, [datas['res_id'],], context) break else: - log.warning("in the %s form, the %s button has unknown type %s", + log.warning("in the \"%s\" form, the \"%s\" button has unknown type %s", action_name, b['string'], b['type']) return res #elif action['type']=='ir.actions.server': -- 1.7.10.4