[Erp5-report] r29111 - /erp5/trunk/products/ERP5Banking/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Sep 18 17:46:30 CEST 2009


Author: vincent
Date: Fri Sep 18 17:46:29 2009
New Revision: 29111

URL: http://svn.erp5.org?rev=29111&view=rev
Log:
Organisations are now automaticaly created, so just fetch them.

Modified:
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py?rev=29111&r1=29110&r2=29111&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py [utf8] Fri Sep 18 17:46:29 2009
@@ -185,20 +185,9 @@
     # in order to have an assigment defined which is used to do transition
     # Create an Organisation that will be used for users assignment
     self.checkUserFolderType()
-    self.organisation = self.organisation_module.newContent(id='site_P10', portal_type='Organisation',
-                                                            function='banking', group='baobab',
-                                                            site='testsite/paris',
-                                                            region='france')
-
-    self.organisation_externe = self.organisation_module.newContent(id='site_S10', portal_type='Organisation',
-                                                                    function='banking', group='baobab',
-                                                                    site='testsite/madrid',
-                                                                    region='spain')
-
-    self.organisation_auxiliaire = self.organisation_module.newContent(id='site_P11', portal_type='Organisation',
-                                                            function='banking', group='baobab',
-                                                            site='testsite/auxiliaire/lyon',
-                                                            region='france')
+    self.organisation = self.organisation_module['site_P10']
+    self.organisation_externe = self.organisation_module['site_S10']
+    self.organisation_auxiliaire = self.organisation_module['site_P11']
 
     # define the user
     user_dict = {




More information about the Erp5-report mailing list