From 0f70b04e5bcb7f188772be272ee8a60893af7010 Mon Sep 17 00:00:00 2001 From: "Anup (OpenERP)" Date: Fri, 17 Sep 2010 09:57:22 +0530 Subject: [PATCH] [IMP] survey : YML test for report added bzr revid: ach@tinyerp.com-20100917042722-f6vpep1bq4brfr9o --- addons/survey/test/survey_report.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/addons/survey/test/survey_report.yml b/addons/survey/test/survey_report.yml index 13f012cd5a7..adb3ddb28ed 100644 --- a/addons/survey/test/survey_report.yml +++ b/addons/survey/test/survey_report.yml @@ -1,8 +1,24 @@ - - In order to test the PDF reports defined on a survey, we will print a survey + In order to test the PDF reports defined on a Survey, we will print Survey Analysis Report - !python {model: survey}: | import netsvc, tools, os (data, format) = netsvc.LocalService('report.survey.analysis').create(cr, uid, [ref('survey.survey_partner_feedback')], {}, {}) if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'survey-report.'+format), 'wb+').write(data) \ No newline at end of file + file(os.path.join(tools.config['test_report_directory'], 'survey-survey_analysis_report.'+format), 'wb+').write(data) +- + In order to test the PDF reports defined on a Survey, we will print Survey Browse Response Report +- + !python {model: survey}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.survey.browse.response').create(cr, uid, [ref('survey.survey_partner_feedback')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'survey-survey_browse_response_report.'+format), 'wb+').write(data) +- + In order to test the PDF reports defined on a Survey, we will print Survey Form Report +- + !python {model: survey}: | + import netsvc, tools, os + (data, format) = netsvc.LocalService('report.survey.form').create(cr, uid, [ref('survey.survey_partner_feedback')], {}, {}) + if tools.config['test_report_directory']: + file(os.path.join(tools.config['test_report_directory'], 'survey-survey_form_report.'+format), 'wb+').write(data) \ No newline at end of file