[IMP] survey : YML test for report added
authorAnup (OpenERP) <ach@tinyerp.com>
Fri, 17 Sep 2010 04:27:22 +0000 (09:57 +0530)
committerAnup (OpenERP) <ach@tinyerp.com>
Fri, 17 Sep 2010 04:27:22 +0000 (09:57 +0530)
bzr revid: ach@tinyerp.com-20100917042722-f6vpep1bq4brfr9o

addons/survey/test/survey_report.yml

index 13f012c..adb3ddb 100644 (file)
@@ -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