[Erp5-report] r30974 jerome - /erp5/trunk/products/ERP5OOo/tests/testOOoImport.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Dec 2 11:39:53 CET 2009


Author: jerome
Date: Wed Dec  2 11:39:50 2009
New Revision: 30974

URL: http://svn.erp5.org?rev=30974&view=rev
Log:
update test

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

Modified: erp5/trunk/products/ERP5OOo/tests/testOOoImport.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testOOoImport.py?rev=30974&r1=30973&r2=30974&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testOOoImport.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testOOoImport.py [utf8] Wed Dec  2 11:39:50 2009
@@ -455,6 +455,15 @@
     organisation_module.Base_importFile(import_file=f, listbox=listbox)
 
   def stepAuthorImportFile(self, sequence=None, sequence_list=None, **kw):
+    # create some regions
+    region = self.portal.portal_categories.region
+    europe = region.newContent(portal_type='Category',
+                      title='Europe',
+                      id='europe')
+    europe.newContent(portal_type='Category',
+                      title='France',
+                      id='france')
+
     user_name = 'author'
     user_folder = self.portal.acl_users
     user_folder._doAddUser(user_name, '', ['Author', 'Member'], [])
@@ -474,7 +483,9 @@
     { 'listbox_key': '003',
       'portal_type_property_list':'Person.gender'},
     { 'listbox_key': '004',
-      'portal_type_property_list':'Person.function'}
+      'portal_type_property_list':'Person.function'},
+    { 'listbox_key': '005',
+      'portal_type_property_list':'Person.region'}
     )
     person_module.Base_importFile(import_file=f, listbox=listbox)
 




More information about the Erp5-report mailing list