Commit 502dbb08 authored by Jérome Perrin's avatar Jérome Perrin

pass context to getReportSectionList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21532 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e55eb259
This diff is collapsed.
...@@ -374,6 +374,7 @@ class TestCrmReports(CrmTestCase): ...@@ -374,6 +374,7 @@ class TestCrmReports(CrmTestCase):
request_form['validation_state'] = ['validated',] request_form['validation_state'] = ['validated',]
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.campaign_module,
'CampaignModule_viewCampaignStatusReport') 'CampaignModule_viewCampaignStatusReport')
self.assertEquals(1, len(report_section_list)) self.assertEquals(1, len(report_section_list))
...@@ -521,6 +522,7 @@ class TestCrmReports(CrmTestCase): ...@@ -521,6 +522,7 @@ class TestCrmReports(CrmTestCase):
request_form['validation_state'] = ['validated',] request_form['validation_state'] = ['validated',]
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.campaign_module,
'CampaignModule_viewCampaignDetailedReport') 'CampaignModule_viewCampaignDetailedReport')
self.assertEquals(2, len(report_section_list)) self.assertEquals(2, len(report_section_list))
...@@ -684,6 +686,7 @@ class TestCrmReports(CrmTestCase): ...@@ -684,6 +686,7 @@ class TestCrmReports(CrmTestCase):
request_form['validation_state'] = ['validated',] request_form['validation_state'] = ['validated',]
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.meeting_module,
'MeetingModule_viewMeetingStatusReport') 'MeetingModule_viewMeetingStatusReport')
self.assertEquals(1, len(report_section_list)) self.assertEquals(1, len(report_section_list))
...@@ -829,6 +832,7 @@ class TestCrmReports(CrmTestCase): ...@@ -829,6 +832,7 @@ class TestCrmReports(CrmTestCase):
request_form['validation_state'] = ['validated',] request_form['validation_state'] = ['validated',]
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.meeting_module,
'MeetingModule_viewMeetingDetailedReport') 'MeetingModule_viewMeetingDetailedReport')
self.assertEquals(2, len(report_section_list)) self.assertEquals(2, len(report_section_list))
...@@ -992,6 +996,7 @@ class TestCrmReports(CrmTestCase): ...@@ -992,6 +996,7 @@ class TestCrmReports(CrmTestCase):
request_form['validation_state'] = ['validated',] request_form['validation_state'] = ['validated',]
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.support_request_module,
'SupportRequestModule_viewSupportRequestStatusReport') 'SupportRequestModule_viewSupportRequestStatusReport')
self.assertEquals(1, len(report_section_list)) self.assertEquals(1, len(report_section_list))
...@@ -1137,6 +1142,7 @@ class TestCrmReports(CrmTestCase): ...@@ -1137,6 +1142,7 @@ class TestCrmReports(CrmTestCase):
request_form['validation_state'] = ['validated',] request_form['validation_state'] = ['validated',]
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.support_request_module,
'SupportRequestModule_viewSupportRequestDetailedReport') 'SupportRequestModule_viewSupportRequestDetailedReport')
self.assertEquals(2, len(report_section_list)) self.assertEquals(2, len(report_section_list))
...@@ -1300,6 +1306,7 @@ class TestCrmReports(CrmTestCase): ...@@ -1300,6 +1306,7 @@ class TestCrmReports(CrmTestCase):
request_form['sale_opportunity_state'] = ['contacted','offered'] request_form['sale_opportunity_state'] = ['contacted','offered']
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.sale_opportunity_module,
'SaleOpportunityModule_viewSaleOpportunityStatusReport') 'SaleOpportunityModule_viewSaleOpportunityStatusReport')
self.assertEquals(1, len(report_section_list)) self.assertEquals(1, len(report_section_list))
...@@ -1445,6 +1452,7 @@ class TestCrmReports(CrmTestCase): ...@@ -1445,6 +1452,7 @@ class TestCrmReports(CrmTestCase):
request_form['sale_opportunity_state'] = ['contacted','offered'] request_form['sale_opportunity_state'] = ['contacted','offered']
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.sale_opportunity_module,
'SaleOpportunityModule_viewSaleOpportunityDetailedReport') 'SaleOpportunityModule_viewSaleOpportunityDetailedReport')
self.assertEquals(2, len(report_section_list)) self.assertEquals(2, len(report_section_list))
...@@ -1701,6 +1709,7 @@ class TestCrmReports(CrmTestCase): ...@@ -1701,6 +1709,7 @@ class TestCrmReports(CrmTestCase):
request_form['from_date'] = DateTime(2007, 1, 1) request_form['from_date'] = DateTime(2007, 1, 1)
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.event_module,
'EventModule_viewEventActivityReport') 'EventModule_viewEventActivityReport')
#Obtain 2 listbox with outgoing and incoming events #Obtain 2 listbox with outgoing and incoming events
self.assertEquals(2, len(report_section_list)) self.assertEquals(2, len(report_section_list))
...@@ -2043,6 +2052,7 @@ class TestCrmReports(CrmTestCase): ...@@ -2043,6 +2052,7 @@ class TestCrmReports(CrmTestCase):
request_form['from_date'] = DateTime(2007, 1, 1) request_form['from_date'] = DateTime(2007, 1, 1)
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.event_module,
'EventModule_viewEventDetailedReport') 'EventModule_viewEventDetailedReport')
#Obtain 1 listbox with outgoing and incoming events #Obtain 1 listbox with outgoing and incoming events
self.assertEquals(1, len(report_section_list)) self.assertEquals(1, len(report_section_list))
......
...@@ -1663,6 +1663,7 @@ class TestPayroll(TestPayrollMixin): ...@@ -1663,6 +1663,7 @@ class TestPayroll(TestPayrollMixin):
request_form['mirror_section'] = provider.getRelativeUrl() request_form['mirror_section'] = provider.getRelativeUrl()
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.accounting_module,
'AccountingTransactionModule_viewPaySheetLineReport') 'AccountingTransactionModule_viewPaySheetLineReport')
self.assertEquals(1, len(report_section_list)) self.assertEquals(1, len(report_section_list))
...@@ -1851,6 +1852,7 @@ class TestPayroll(TestPayrollMixin): ...@@ -1851,6 +1852,7 @@ class TestPayroll(TestPayrollMixin):
request_form['mirror_section'] = provider.getRelativeUrl() request_form['mirror_section'] = provider.getRelativeUrl()
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.accounting_module,
'AccountingTransactionModule_viewPaySheetLineReport') 'AccountingTransactionModule_viewPaySheetLineReport')
self.assertEquals(1, len(report_section_list)) self.assertEquals(1, len(report_section_list))
......
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