Ignore:
Timestamp:
11 Jan 2016, 09:14:27 (9 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base packages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/applicants/tests/test_browser.py

    r13096 r13587  
    7878        result = open(self.outfile, 'rb').read()
    7979        self.assertMatches(result,
    80         self.assertMatches(result,
    8180            'aggregate,applicant_id,application_date,application_number,'
    8281            'container_code,course1,course2,course_admitted,date_of_birth,'
    8382            'display_fullname,email,emp2_end,emp2_position,emp2_reason,'
    8483            'emp2_start,emp_end,emp_position,emp_reason,emp_start,employer,'
    85             'employer2,firstname,history,hq_degree,hq_disc,hq_matric_no,'
    86             'hq_school,hq_session,hq_type,jamb_age,jamb_score,jamb_subjects,'
     84            'employer2,firstname,fst_sit_date,fst_sit_fname,fst_sit_no,'
     85            'fst_sit_results,fst_sit_type,history,hq_degree,hq_disc,'
     86            'hq_fname,hq_matric_no,hq_school,hq_session,hq_type,'
     87            'jamb_reg_number,jamb_score,jamb_subjects,jamb_subjects_list,'
    8788            'lastname,lga,locked,middlename,nationality,notice,nysc_lga,'
    88             'nysc_year,password,phone,pp_school,presently_inst,reg_number,'
    89             'result_uploaded,screening_date,screening_score,screening_venue,'
    90             'sex,special,special_application,state,student_id,suspended,'
    91             'translated_state\r\n'
    92             ',dp2011_654321,,654321,dp2011,CERT1,CERT1,CERT1,1981-02-04#,'
    93             'Anna M. Tester,anna@sample.com,,,,,,,,,,,Anna,'
    94             '[u\'2015-06-23 07:31:05 WAT - Application initialized by system\']'
    95             ',,,,,,,,,,Tester,,0,M.,NG,"Some notice in lines.",,,any password,'
    96             '+234-123-12345#,,,123456,,"Saturday, 16th June 2012 2:00:00 PM",'
    97             '98,Exam Room,f,,,initialized,,0,initialized\r\n')
     89            'nysc_year,password,phone,presently_inst,programme_type,'
     90            'reg_number,result_uploaded,scd_sit_date,scd_sit_fname,'
     91            'scd_sit_no,scd_sit_results,scd_sit_type,screening_date,'
     92            'screening_score,screening_venue,sex,special,special_application,'
     93            'state,student_id,suspended,translated_state\r\n,'
     94            'dp2011_654321,,654321,dp2011,CERT1,CERT1,CERT1,1981-02-04#,'
     95            'Anna M. Tester,anna@sample.com,,,,,,,,,,,Anna,,,,,,'
     96            '[u\'2016-01-11 10:05:17 WAT - Application initialized by system\']'
     97            ',,,,,,,,,,,,Tester,,0,M.,NG,"Some notice\nin lines.",,,'
     98            'any password,+234-123-12345#,,,123456,,,,,,,'
     99            '"Saturday, 16th June 2012 2:00:00 PM",98,Exam Room,f,,,'
     100            'initialized,,0,initialized\r\n')
    98101        # We can import the same file if we ignore some columns.
    99102        # Since the applicants_catalog hasn't been notified, the same
     
    103106            self.outfile,
    104107            ['aggregate','ignore_applicant_id','application_date','ignore_application_number',
    105             'container_code','course1','course2','course_admitted','date_of_birth',
    106             'ignore_display_fullname','email','emp2_end','emp2_position','emp2_reason',
    107             'emp2_start','emp_end','emp_position','emp_reason','emp_start','employer',
    108             'employer2','firstname','ignore_history','hq_degree','hq_disc','hq_matric_no',
    109             'hq_school','hq_session','hq_type','jamb_age','jamb_score','jamb_subjects',
    110             'lastname','lga','locked','middlename','nationality','notice','nysc_lga',
    111             'nysc_year','password','phone','pp_school','presently_inst','reg_number',
    112             'result_uploaded','screening_date','screening_score','screening_venue',
    113             'sex','ignore_special','special_application','state','student_id','suspended',
    114             'translated_state'],
     108             'container_code','course1','course2','course_admitted',
     109             'date_of_birth','ignore_display_fullname','email','emp2_end',
     110             'emp2_position','emp2_reason','emp2_start','emp_end',
     111             'emp_position','emp_reason','emp_start','employer',
     112             'employer2','firstname','fst_sit_date','fst_sit_fname',
     113             'fst_sit_no','fst_sit_results','fst_sit_type','ignore_history',
     114             'hq_degree','hq_disc','hq_fname','hq_matric_no','hq_school',
     115             'hq_session','hq_type','jamb_reg_number','jamb_score',
     116             'jamb_subjects','jamb_subjects_list','lastname','lga',
     117             'locked','middlename','nationality','notice','nysc_lga',
     118             'nysc_year','password','phone','presently_inst','programme_type',
     119             'reg_number','result_uploaded','scd_sit_date','scd_sit_fname',
     120             'scd_sit_no','scd_sit_results','scd_sit_type','screening_date',
     121             'screening_score','screening_venue','sex','ignore_special',
     122             'special_application','state','student_id','suspended',
     123             'translated_state'],
    115124            mode='create')
    116125        num_succ, num_fail, finished_path, failed_path = result
     
    126135        result = processor.doImport(
    127136            self.outfile,
    128             ['aggregate','ignore_applicant_id','application_date','ignore_application_number',
    129             'ignore_container_code','course1','course2','course_admitted','date_of_birth',
    130             'ignore_display_fullname','email','emp2_end','emp2_position','emp2_reason',
    131             'emp2_start','emp_end','emp_position','emp_reason','emp_start','employer',
    132             'employer2','firstname','ignore_history','hq_degree','hq_disc','hq_matric_no',
    133             'hq_school','hq_session','hq_type','jamb_age','jamb_score','jamb_subjects',
    134             'lastname','lga','locked','middlename','nationality','notice','nysc_lga',
    135             'nysc_year','password','phone','pp_school','presently_inst','reg_number',
    136             'result_uploaded','screening_date','screening_score','screening_venue',
    137             'sex','ignore_special','special_application','state','student_id','suspended',
    138             'translated_state'],
     137           ['aggregate','ignore_applicant_id','application_date','ignore_application_number',
     138             'ignore_container_code','course1','course2','course_admitted',
     139             'date_of_birth','ignore_display_fullname','email','emp2_end',
     140             'emp2_position','emp2_reason','emp2_start','emp_end',
     141             'emp_position','emp_reason','emp_start','employer',
     142             'employer2','firstname','fst_sit_date','fst_sit_fname',
     143             'fst_sit_no','fst_sit_results','fst_sit_type','ignore_history',
     144             'hq_degree','hq_disc','hq_fname','hq_matric_no','hq_school',
     145             'hq_session','hq_type','jamb_reg_number','jamb_score',
     146             'jamb_subjects','jamb_subjects_list','lastname','lga',
     147             'locked','middlename','nationality','notice','nysc_lga',
     148             'nysc_year','password','phone','presently_inst','programme_type',
     149             'reg_number','result_uploaded','scd_sit_date','scd_sit_fname',
     150             'scd_sit_no','scd_sit_results','scd_sit_type','screening_date',
     151             'screening_score','screening_venue','sex','ignore_special',
     152             'special_application','state','student_id','suspended',
     153             'translated_state'],
    139154            mode='update')
    140155        num_succ, num_fail, finished_path, failed_path = result
Note: See TracChangeset for help on using the changeset viewer.