- Timestamp:
- 29 Dec 2014, 06:52:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/tests/test_browser.py
r12292 r12335 157 157 self.assertMatches(result, 158 158 'class_name,contract_category,contract_id,document_object,' 159 'history,last_product_id,product_object,state,title,user_id\r\n' 159 'history,last_product_id,product_object,product_options,' 160 'state,title,user_id\r\n' 160 161 'SkeletonContract,sample,%s,,' 161 162 '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']' 162 ',,, created,My first contract,K1000000\r\n'163 ',,,[],created,My first contract,K1000000\r\n' 163 164 % self.contract.contract_id) 164 165 # We can reimport the file if we change the header (user_id -> customer_id) … … 166 167 open(self.outfile, 'wb').write( 167 168 'class_name,contract_category,contract_id,document_object,' 168 'history,last_product_id,product_object,state,title,customer_id\r\n' 169 'history,last_product_id,product_object,product_options,' 170 'state,title,user_id\r\n' 169 171 'SkeletonContract,sample,%s,,' 170 172 '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']' 171 ',,, created,My first contract,K1000000\r\n'173 ',,,[],created,My first contract,K1000000\r\n' 172 174 % self.contract.contract_id) 173 175 result = processor.doImport( 174 176 self.outfile, 175 177 ['class_name','contract_category','contract_id','document_object', 176 'history','last_product_id','product_object','state','title','customer_id'], 178 'history','last_product_id','product_object','product_options', 179 'state','title','customer_id'], 177 180 mode='create') 178 181 num, num_fail, finished_path, failed_path = result … … 184 187 self.outfile, 185 188 ['class_name','contract_category','contract_id','document_object', 186 'history','last_product_id','product_object','state','title','customer_id'], 189 'history','last_product_id','product_object','product_options', 190 'state','title','customer_id'], 187 191 mode='create') 188 192 num_succ, num_fail, finished_path, failed_path = result … … 192 196 self.outfile, 193 197 ['class_name','contract_category','contract_id','document_object', 194 'history','last_product_id','product_object','state','title','customer_id'], 198 'history','last_product_id','product_object','product_options', 199 'state','title','customer_id'], 195 200 mode='update') 196 201 num_succ, num_fail, finished_path, failed_path = result
Note: See TracChangeset for help on using the changeset viewer.