Commit a7c3ff62 authored by Sebastien Robin's avatar Sebastien Robin

* Add unit test for task monthly report on projects

* Make ERP5ReportTestCase supporting another context
  when method are used with Sections

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28189 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dad23676
This diff is collapsed.
......@@ -951,6 +951,7 @@ class ERP5ReportTestCase(ERP5TypeTestCase):
here = report_section.getObject(self.portal)
report_section.pushReport(self.portal)
form = getattr(here, report_section.getFormId())
self.portal.REQUEST['here'] = here
if form.has_field('listbox'):
result = form.listbox.get_value('default',
render_format='list',
......@@ -969,7 +970,6 @@ class ERP5ReportTestCase(ERP5TypeTestCase):
if diff_list:
self.fail('Lines differs:\n' + '\n'.join(diff_list))
from unittest import _makeLoader, TestSuite
def dummy_makeSuite(testCaseClass, prefix='dummy_test', sortUsing=cmp, suiteClass=TestSuite):
......
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