Changeset 7522 for main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Timestamp:
- 27 Jan 2012, 16:33:02 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/sample_student_data.csv
r7513 r7522 1 firstname,lastname,reg_number,date_of_birth,matric_number,email,phone ,reg_state1 firstname,lastname,reg_number,date_of_birth,matric_number,email,phone 2 2 Aaren,Pieri,1,1990-01-02,100000,aa@aa.ng,1234 3 Aaren,Finau,2,1990-01-03,100001,aa@aa.ng,1234,admitted 4 Aaren,Berson,3,1990-01-04,100002,aa@aa.ng,1234,cleared 5 John,Wolter,4,1990-01-04,100003,aa@aa.ng,1234,nonsense 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/sample_student_data_migration.csv
r7515 r7522 3 3 B123456,Aaren,Finau,2,1990-01-03,100001,aa@aa.ng,1234,mypw1,cleared 4 4 C123456,Aaren,Berson,3,1990-01-04,100002,aa@aa.ng,1234,mypw1,admitted 5 D123456,John,Wolter,4,1990-01-04,100003,aa@aa.ng,1234,mypw1,nonsense 5 D123456,John,Wolter,4,1990-01-05,100003,aa@aa.ng,1234,mypw1,nonsense 6 E123456,John,Kennedy,5,1990-01-06,100004,aa@aa.ng,1234, -
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_batching.py
r7515 r7522 163 163 num, num_warns, fin_file, fail_file = self.importer.doImport( 164 164 self.csv_file, STUDENT_HEADER_FIELDS) 165 self.assertEqual(num_warns, 1)165 self.assertEqual(num_warns,0) 166 166 assert len(self.app['students'].keys()) == 4 167 167 shutil.rmtree(os.path.dirname(fin_file)) … … 197 197 num, num_warns, fin_file, fail_file = self.importer.doImport( 198 198 self.csv_file_migration, STUDENT_HEADER_FIELDS_MIGRATION) 199 self.assertEqual(num_warns, 1)199 self.assertEqual(num_warns,2) 200 200 assert len(self.app['students'].keys()) == 4 201 201 self.assertTrue('A123456' in self.app['students'].keys()) … … 206 206 self.assertEqual(self.app['students']['B123456'].date_of_birth, 207 207 datetime.date(1990, 1, 3)) 208 history = ' '.join(self.app['students']['A123456'].history.messages) 209 self.assertTrue( 210 "State 'school fee paid' set by system" in history) 208 211 shutil.rmtree(os.path.dirname(fin_file)) 209 212
Note: See TracChangeset for help on using the changeset viewer.