Changeset 12354 for main/ikobacustom.skeleton
- Timestamp:
- 31 Dec 2014, 16:16:32 (10 years ago)
- Location:
- main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/tests/test_browser.py
r12335 r12354 56 56 customer['documents'].addDocument(document) 57 57 contract = createObject(u'waeup.SkeletonContract') 58 contract .title = u'My first contract'59 58 customer['contracts'].addContract(contract) 60 59 self.customer = customer … … 161 160 'SkeletonContract,sample,%s,,' 162 161 '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']' 163 ',,,[],created, My first contract,K1000000\r\n'162 ',,,[],created,,K1000000\r\n' 164 163 % self.contract.contract_id) 165 164 # We can reimport the file if we change the header (user_id -> customer_id) … … 171 170 'SkeletonContract,sample,%s,,' 172 171 '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']' 173 ',,,[],created, My first contract,K1000000\r\n'172 ',,,[],created,,K1000000\r\n' 174 173 % self.contract.contract_id) 175 174 result = processor.doImport( -
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/products/tests/test_browser.py
r12335 r12354 52 52 result = open(self.outfile, 'rb').read() 53 53 self.assertEqual(result, 54 'contract_category, options,product_id,title,users_with_local_roles\r\n'55 'license, [],LIC,Unnamed,[]\r\n')54 'contract_category,contract_title,options,product_id,title,users_with_local_roles\r\n' 55 'license,,[],LIC,Unnamed,[]\r\n') 56 56 # We can import the same file. 57 57 processor = SkeletonProductProcessor() 58 58 result = processor.doImport( 59 59 self.outfile, 60 ['contract_category',' options,', 'product_id','title',61 ' users_with_local_roles'],60 ['contract_category','contract_title', 'options,', 'product_id', 61 'title','users_with_local_roles'], 62 62 mode='create') 63 63 num, num_fail, finished_path, failed_path = result … … 69 69 result = processor.doImport( 70 70 self.outfile, 71 ['contract_category',' options','product_id','title',72 ' users_with_local_roles'],71 ['contract_category','contract_title', 'options,', 'product_id', 72 'title','users_with_local_roles'], 73 73 mode='create') 74 74 num, num_fail, finished_path, failed_path = result … … 78 78 result = processor.doImport( 79 79 self.outfile, 80 ['contract_category',' options','product_id','title',81 ' users_with_local_roles'],80 ['contract_category','contract_title', 'options,', 'product_id', 81 'title','users_with_local_roles'], 82 82 mode='update') 83 83 num, num_fail, finished_path, failed_path = result
Note: See TracChangeset for help on using the changeset viewer.