Changeset 8579


Ignore:
Timestamp:
31 May 2012, 17:43:11 (13 years ago)
Author:
Henrik Bettermann
Message:

Yes, we can re-import output files from the exporter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests.py

    r8578 r8579  
    3636from waeup.uniben.testing import FunctionalLayer
    3737from waeup.uniben.applicants.export import CustomApplicantsExporter
     38from waeup.uniben.applicants.batching import CustomApplicantProcessor
    3839
    3940
     
    267268            '123456,"Saturday, 16th June 2012 2:00:00 PM",98,Exam Room,f,'
    268269            'initialized,,dp2011' in result)
    269         return
     270        processor = CustomApplicantProcessor()
     271        result = processor.doImport(
     272            self.outfile,
     273            ['ignore1','application_date','ignore2','course1','course2',''
     274            'course_admitted','date_of_birth','ignore3','email','emp2_end',''
     275            'emp2_position','emp2_reason','emp2_start','emp_end','emp_position',''
     276            'emp_reason','emp_start','employer','employer2','firstname','ignore4',''
     277            'hq_degree','hq_disc','hq_matric_no','hq_school','hq_session','hq_type',''
     278            'jamb_score','jamb_subjects','lastname','lga','locked','middlename',''
     279            'nationality','notice','nysc_lga',''
     280            'nysc_year','password','perm_address','phone','pp_school','presently_inst',''
     281            'reg_number','screening_date','screening_score','screening_venue','sex',''
     282            'state','student_id','container_code'],
     283            mode='create')
     284        num_succ, num_fail, finished_path, failed_path = result
     285        self.assertEqual(num_succ,1)
     286        self.assertEqual(num_fail,0)
     287        return
Note: See TracChangeset for help on using the changeset viewer.