[Erp5-report] r25910 - /erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 6 18:09:49 CET 2009


Author: jerome
Date: Fri Mar  6 18:09:48 2009
New Revision: 25910

URL: http://svn.erp5.org?rev=25910&view=rev
Log:
Rename test_form_list_report_tree into test_form_list_domain_tree, as it's
testing domain_tree, not report_tree.
Try to initialise the domain parameters, but someting is incorrect there,
because the domain in not activated in the generated odt.

Modified:
    erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py

Modified: erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py?rev=25910&r1=25909&r2=25910&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testOOoStyle.py [utf8] Fri Mar  6 18:09:48 2009
@@ -99,10 +99,16 @@
     self.assertEquals('inline', content_disposition.split(';')[0])
     self._validate(response.getBody())
 
-  def test_form_list_report_tree(self):
+  def test_form_list_domain_tree(self):
     self.portal.portal_selections.setListboxDisplayMode(
                   self.portal.REQUEST, 'DomainTreeMode',
                   'person_module_selection')
+    # XXX no proper API on selection / selection tool for this ?
+    self.portal.portal_selections.setSelectionParamsFor(
+                  selection_name='person_module_selection',
+                  params=dict(domain_path='portal_categories',
+                              domain_url='group',
+                              domain_list=()))
     response = self.publish(
                    '/%s/person_module/PersonModule_viewPersonList'
                     % self.portal.getId(), self.auth)




More information about the Erp5-report mailing list