Changeset 11739


Ignore:
Timestamp:
7 Jul 2014, 06:48:47 (10 years ago)
Author:
Henrik Bettermann
Message:

Add 'jamb_age' field and fix tests.

Location:
main/kofacustom.nigeria/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/CHANGES.txt

    r11643 r11739  
    441.2 (unreleased)
    55================
     6
     7- Add 'jamb_age' field.
    68
    79- Check if same payment has been made before calling 'goto_interswitch'.
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py

    r10851 r11739  
    157157        readonly = False,
    158158        )
     159    jamb_age = schema.Int(
     160        title = _(u'Age (provided by JAMB)'),
     161        required = False,
     162        )
    159163    jamb_subjects = schema.Text(
    160164        title = _(u'Subjects and Scores'),
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/tests/test_browser.py

    r10899 r11739  
    276276        self.browser.getLink("Register for application").click()
    277277        # Fill the edit form with suitable values
    278         self.browser.getControl(name="form.firstname").value = 'Klaus'
     278        self.browser.getControl(name="form.lastname").value = 'Under'
    279279        self.browser.getControl(name="form.email").value = 'xx@yy.zz'
    280280        self.browser.getControl(name="form.reg_number").value = '1234'
     
    366366            'emp_position,emp_reason,emp_start,employer,employer2,'
    367367            'firstname,history,hq_degree,hq_disc,hq_matric_no,hq_school,'
    368             'hq_session,hq_type,jamb_score,jamb_subjects,lastname,lga,'
     368            'hq_session,hq_type,jamb_age,jamb_score,jamb_subjects,lastname,lga,'
    369369            'locked,middlename,nationality,notice,nysc_lga,nysc_year,'
    370370            'password,phone,pp_school,presently_inst,reg_number,'
     
    375375            'Anna M. Tester,anna@sample.com,,,,,,,,,,,Anna,'
    376376            '[u\'2012-10-28 21:27:52 WAT - Application initialized by system\']'
    377             ',,,,,,,,,Tester,,0,M.,NG,"Some notice\nin lines.",,,'
     377            ',,,,,,,,,,Tester,,0,M.,NG,"Some notice\nin lines.",,,'
    378378            'any password,+234-123-12345#,,,123456,,'
    379379            '"Saturday, 16th June 2012 2:00:00 PM",98,Exam Room,f,,initialized,,'
     
    391391            'emp_reason','emp_start','employer','employer2','firstname','ignore4',
    392392            'hq_degree','hq_disc','hq_matric_no','hq_school','hq_session','hq_type',
    393             'jamb_score','jamb_subjects','lastname','lga','locked','middlename',
    394             'nationality','notice','nysc_lga',
     393            'jamb_age','jamb_score','jamb_subjects','lastname','lga','locked',
     394            'middlename','nationality','notice','nysc_lga',
    395395            'nysc_year','password','phone','pp_school','presently_inst',
    396396            'reg_number','result_uploaded',
     
    417417            'emp_reason','emp_start','employer','employer2','firstname','ignore4',
    418418            'hq_degree','hq_disc','hq_matric_no','hq_school','hq_session','hq_type',
    419             'jamb_score','jamb_subjects','lastname','lga','locked','middlename',
    420             'nationality','notice','nysc_lga',
     419            'jamb_age','jamb_score','jamb_subjects','lastname','lga','locked',
     420            'middlename','nationality','notice','nysc_lga',
    421421            'nysc_year','password','phone','pp_school','presently_inst',
    422422            'reg_number','result_uploaded','screening_date','screening_score',
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py

    r10757 r11739  
    105105            'r_pay_reference,thirdparty_amt,student_id,state,'
    106106            'current_session\r\n'
    107             '666,12.12,2012-04-01 13:12:01,,schoolfee,1,my-id,p-item,'
    108             '100,2012,paid,2012-04-01 14:12:01,,12.12,'
     107            '666,12.12,2012-04-01 13:12:01#,,schoolfee,1,my-id,p-item,'
     108            '100,2012,paid,2012-04-01 14:12:01#,,12.12,'
    109109            '789,r-code,interswatch,,,,A111111,created,2012\r\n',
    110110            result
Note: See TracChangeset for help on using the changeset viewer.