Ignore:
Timestamp:
14 Feb 2012, 09:32:28 (13 years ago)
Author:
Henrik Bettermann
Message:

Enable mixed imports of rows with or without student_id.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/tests/sample_student_data.csv

    r7522 r7643  
    1 firstname,lastname,reg_number,date_of_birth,matric_number,email,phone
    2 Aaren,Pieri,1,1990-01-02,100000,aa@aa.ng,1234
    3 Aaren,Finau,2,1990-01-03,100001,aa@aa.ng,1234
    4 Aaren,Berson,3,1990-01-04,100002,aa@aa.ng,1234
     1student_id,firstname,lastname,reg_number,date_of_birth,matric_number,email,phone
     2X666666,Aaren,Pieri,1,1990-01-02,100000,aa@aa.ng,1234
     3,Aaren,Finau,2,1990-01-03,100001,aa@aa.ng,1234
     4,Aaren,Berson,3,1990-01-04,100002,aa@aa.ng,1234
  • main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_batching.py

    r7623 r7643  
    201201        self.assertEqual(num_warns,0)
    202202        assert len(self.app['students'].keys()) == 4
     203        self.assertEqual(self.app['students']['X666666'].reg_number,'1')
    203204        shutil.rmtree(os.path.dirname(fin_file))
    204205
Note: See TracChangeset for help on using the changeset viewer.