Changeset 9046


Ignore:
Timestamp:
25 Jul 2012, 21:09:13 (12 years ago)
Author:
Henrik Bettermann
Message:

Fix tests.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
Files:
3 edited

Legend:

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

    r8926 r9046  
    346346            'reg_number,result_uploaded,screening_date,screening_score,screening_venue,sex,'
    347347            'state,student_id,'
    348             'container_code'
     348            'suspended,container_code'
    349349            in result)
    350350        self.assertTrue(
     
    352352            '"Some notice\nin lines.",,,any password,,+234-123-12345,,,'
    353353            '123456,,"Saturday, 16th June 2012 2:00:00 PM",98,Exam Room,f,'
    354             'initialized,,dp2011'
     354            'initialized,,0,dp2011'
    355355            in result)
    356356        # We can import the same file if we ignore some columns.
     
    371371            'reg_number','result_uploaded',
    372372            'screening_date','screening_score','screening_venue','sex',
    373             'state','student_id','container_code'],
     373            'state','student_id','suspended','container_code'],
    374374            mode='create')
    375375        num_succ, num_fail, finished_path, failed_path = result
     
    395395            'reg_number','result_uploaded','screening_date','screening_score',
    396396            'screening_venue','sex',
    397             'state','student_id','ignore_container_code'],
     397            'state','student_id','suspended','ignore_container_code'],
    398398            mode='update')
    399399        num_succ, num_fail, finished_path, failed_path = result
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py

    r9041 r9046  
    247247        self.browser.open(self.edit_clearance_path)
    248248        self.browser.getControl("Save and request clearance").click()
    249         self.assertTrue('Enter the CLR access code used for starting clearance'
     249        self.assertTrue('Clearance has been requested'
    250250            in self.browser.contents)
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py

    r9044 r9046  
    4747        self.assertTrue(
    4848            'adm_code,alr_date,alr_fname,alr_no,alr_results,clearance_locked,'
    49             'clr_code,date_of_birth,date_of_birth,def_adm,disabled,email,'
    50             'emp2_end,emp2_position,emp2_reason,emp2_start,emp_end,'
    51             'emp_position,emp_reason,emp_start,employer,employer2,'
    52             'firstname,former_matric,fst_sit_date,fst_sit_fname,fst_sit_no,'
    53             'fst_sit_results,fst_sit_type,hq2_degree,hq2_disc,hq2_matric_no,'
    54             'hq2_school,hq2_session,hq2_type,hq_degree,hq_disc,hq_matric_no,'
    55             'hq_school,hq_session,hq_type,is_staff,lastname,lga,marit_stat,'
    56             'matric_number,middlename,nationality,nationality,next_kin_address,'
    57             'next_kin_name,next_kin_relation,nysc_lga,nysc_location,nysc_year,'
    58             'perm_address,phone,reg_number,reg_number,religion,scd_sit_date,'
     49            'clr_code,date_of_birth,def_adm,disabled,email,emp2_end,'
     50            'emp2_position,emp2_reason,emp2_start,emp_end,emp_position,'
     51            'emp_reason,emp_start,employer,employer2,firstname,former_matric,'
     52            'fst_sit_date,fst_sit_fname,fst_sit_no,fst_sit_results,'
     53            'fst_sit_type,hq2_degree,hq2_disc,hq2_matric_no,hq2_school,'
     54            'hq2_session,hq2_type,hq_degree,hq_disc,hq_matric_no,hq_school,'
     55            'hq_session,hq_type,is_staff,lastname,lga,marit_stat,'
     56            'matric_number,middlename,nationality,next_kin_address,'
     57            'next_kin_name,next_kin_relation,nysc_lga,nysc_location,'
     58            'nysc_year,perm_address,phone,reg_number,religion,scd_sit_date,'
    5959            'scd_sit_fname,scd_sit_no,scd_sit_results,scd_sit_type,sex,'
    60             'student_id,password,state,history,certcode\r\n'
     60            'student_id,suspended,password,state,history,certcode\r\n'
    6161
    6262            'my adm code,,,,"[(\'visual_art\', \'A1\')]",0,my clr code,'
    63             '1981-02-04#,1981-02-04#,,,anna@sample.com,,,,,,,,,,,Anna,,,,,'
    64             '"[(\'visual_art\', \'A1\')]",,,,,,,,,,,,,,,Tester,,,M123456,M.,'
    65             'NG,NG,,,,,,,"Studentroad 21\nLagos 123456\n",+234-123-12345#,'
    66             '123456,123456,,,,,"[(\'visual_art\', \'A1\')]",,f,A111111,,created,'
     63            '1981-02-04#,,,anna@sample.com,,,,,,,,,,,Anna,,,,,'
     64            '"[(\'visual_art\', \'A1\')]",,,,,,,,,,,,,,,Tester,,,234,M.,NG'
     65            ',,,,,,,"Studentroad 21\nLagos 123456\n",+234-123-12345#,123'
     66            ',,,,,"[(\'visual_art\', \'A1\')]",,f,A111111,0,,created,'
    6767            in result
    6868            )
Note: See TracChangeset for help on using the changeset viewer.