Changeset 8586 for main/waeup.uniben/trunk/src/waeup
- Timestamp:
- 1 Jun 2012, 04:51:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests.py
r8580 r8586 274 274 result = processor.doImport( 275 275 self.outfile, 276 ['ignore1','application_date','ignore2','course1','course2','' 277 'course_admitted','date_of_birth','ignore3','email','emp2_end','' 278 'emp2_position','emp2_reason','emp2_start','emp_end','emp_position','' 279 'emp_reason','emp_start','employer','employer2','firstname','ignore4','' 280 'hq_degree','hq_disc','hq_matric_no','hq_school','hq_session','hq_type','' 281 'jamb_score','jamb_subjects','lastname','lga','locked','middlename','' 282 'nationality','notice','nysc_lga','' 283 'nysc_year','password','perm_address','phone','pp_school','presently_inst','' 284 'reg_number','screening_date','screening_score','screening_venue','sex','' 276 ['ignore_applicant_id','application_date','ignore_application_number', 277 'course1','course2', 278 'course_admitted','date_of_birth','ignore3','email','emp2_end', 279 'emp2_position','emp2_reason','emp2_start','emp_end','emp_position', 280 'emp_reason','emp_start','employer','employer2','firstname','ignore4', 281 'hq_degree','hq_disc','hq_matric_no','hq_school','hq_session','hq_type', 282 'jamb_score','jamb_subjects','lastname','lga','locked','middlename', 283 'nationality','notice','nysc_lga', 284 'nysc_year','password','perm_address','phone','pp_school','presently_inst', 285 'reg_number','screening_date','screening_score','screening_venue','sex', 285 286 'state','student_id','container_code'], 286 287 mode='create') … … 288 289 self.assertEqual(num_succ,1) 289 290 self.assertEqual(num_fail,0) 290 return 291 # Now we ignore also the container_code and import the same file 292 # in update mode which means that ICustomApplicantUpdateByRegNo 293 # is used for field conversion. applicant_id must be ignored 294 # too since the previous import has notified the applicants_catalog 295 # so that the portal 'knows' that reg_number is in use. 296 processor = CustomApplicantProcessor() 297 result = processor.doImport( 298 self.outfile, 299 ['ignore_applicant_id','application_date','ignore_application_number', 300 'course1','course2', 301 'course_admitted','date_of_birth','ignore3','email','emp2_end', 302 'emp2_position','emp2_reason','emp2_start','emp_end','emp_position', 303 'emp_reason','emp_start','employer','employer2','firstname','ignore4', 304 'hq_degree','hq_disc','hq_matric_no','hq_school','hq_session','hq_type', 305 'jamb_score','jamb_subjects','lastname','lga','locked','middlename', 306 'nationality','notice','nysc_lga', 307 'nysc_year','password','perm_address','phone','pp_school','presently_inst', 308 'reg_number','screening_date','screening_score','screening_venue','sex', 309 'state','student_id','ignore_container_code'], 310 mode='update') 311 num_succ, num_fail, finished_path, failed_path = result 312 self.assertEqual(num_succ,1) 313 self.assertEqual(num_fail,0) 314 return
Note: See TracChangeset for help on using the changeset viewer.