Changeset 16403 for main/kofacustom.iuokada/trunk/src
- Timestamp:
- 2 Mar 2021, 13:12:10 (4 years ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/export.py
r16352 r16403 39 39 ICustomStudent, omit=['loggerInfo']))) + ( 40 40 'password', 'state', 'history', 'certcode', 'is_postgrad', 41 'current_level', 'current_session' )41 'current_level', 'current_session', 'entry_session') 42 42 43 43 class CustomStudentStudyCourseExporter(NigeriaStudentStudyCourseExporter): -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_export.py
r16352 r16403 39 39 40 40 41 def disabled_test_export_all(self):41 def test_export_all(self): 42 42 # we can really export students 43 43 # set values we can expect in export file … … 46 46 exporter.export_all(self.app, self.outfile) 47 47 result = open(self.outfile, 'rb').read() 48 self.assertMatches( 49 'adm_code,alr_date,alr_fname,alr_no,alr_results,' 50 'clr_code,date_of_birth,def_adm,disabled,email,email2,emp2_end,' 51 'emp2_position,emp2_reason,emp2_start,emp_end,emp_position,' 52 'emp_reason,emp_start,employer,employer2,' 53 'financial_clearance_date,financially_cleared_by,' 54 'firstname,flash_notice,former_matric,' 55 'fst_sit_date,fst_sit_fname,fst_sit_no,fst_sit_results,' 56 'fst_sit_type,hq2_degree,hq2_disc,hq2_matric_no,hq2_school,' 57 'hq2_session,hq2_type,hq_degree,hq_disc,hq_fname,hq_matric_no,' 58 'hq_school,hq_session,hq_type,is_staff,lastname,lga,library,' 59 'marit_stat,matric_number,middlename,nationality,' 60 'next_kin_address,next_kin_name,next_kin_phone,next_kin_relation,' 61 'nysc_lga,nysc_location,nysc_year,officer_comment,parents_email,' 62 'perm_address,personal_updated,phone,' 63 'physical_clearance_date,provisionally_cleared,reg_number,' 64 'religion,scd_sit_date,scd_sit_fname,scd_sit_no,' 65 'scd_sit_results,scd_sit_type,sex,student_id,' 66 'suspended,suspended_comment,password,state,history,certcode,is_postgrad,' 67 'current_level,current_session\r\nmy adm code,,,,' 68 '"[(\'printing_craft_practice\', \'A1\')]",my clr code,1981-02-04#,,,' 69 'anna@sample.com,,,,,,,,,,,,,,Anna,,,,,,"[(\'printing_craft_practice\', \'A1\')]"' 70 ',,,,,,,,,,,,,,,,Tester,,,,234,M.,NG,,,,,,,,,,' 71 '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,,,123,,,,,' 72 '"[(\'printing_craft_practice\', \'A1\')]",,f,A111111,0,,,created,' 73 '[u\'2012-11-06 13:16:41 WAT - Record created by system\'],' 74 'CERT1,0,200,2012\r\n', 75 result 76 ) 48 self.assertTrue('entry_session' in result) 77 49 return 78 50
Note: See TracChangeset for help on using the changeset viewer.