- Timestamp:
- 16 Jun 2014, 08:29:22 (11 years ago)
- Location:
- main/kofacustom.sampleuni/trunk/src/kofacustom/sampleuni
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.sampleuni/trunk/src/kofacustom/sampleuni/students/tests/test_browser.py
r10765 r11687 34 34 IExtFileStore, IFileStoreNameChooser) 35 35 from waeup.kofa.students.interfaces import IStudentsUtils 36 from kofacustom.s keleton.testing import FunctionalLayer36 from kofacustom.sampleuni.testing import FunctionalLayer 37 37 -
main/kofacustom.sampleuni/trunk/src/kofacustom/sampleuni/students/tests/test_export.py
r11543 r11687 5 5 from waeup.kofa.schoolgrades import ResultEntry 6 6 from waeup.kofa.students.tests.test_batching import StudentImportExportSetup 7 from kofacustom.s keleton.utils.utils import CustomKofaUtils8 from kofacustom.s keleton.students.export import (7 from kofacustom.sampleuni.utils.utils import CustomKofaUtils 8 from kofacustom.sampleuni.students.export import ( 9 9 CustomStudentsExporter, CustomStudentPaymentsExporter) 10 from kofacustom.s keleton.testing import FunctionalLayer10 from kofacustom.sampleuni.testing import FunctionalLayer 11 11 12 12 … … 46 46 result = open(self.outfile, 'rb').read() 47 47 self.assertMatches( 48 'adm_code,alr_date,alr_fname,alr_no,alr_results,clearance_locked,' 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_fname,hq_matric_no,' 55 'hq_school,hq_session,hq_type,is_staff,lastname,lga,' 56 'marit_stat,matric_number,middlename,nationality,' 57 'next_kin_address,next_kin_name,next_kin_phone,next_kin_relation,' 58 'nysc_lga,nysc_location,nysc_year,officer_comment,' 59 'perm_address,personal_updated,phone,reg_number,' 60 'religion,scd_sit_date,scd_sit_fname,scd_sit_no,' 61 'scd_sit_results,scd_sit_type,sex,student_id,' 62 'suspended,suspended_comment,password,state,history,certcode,is_postgrad,' 63 'current_level,current_session\r\nmy adm code,,,,' 64 '"[(\'visual_art\', \'A1\')]",0,my clr code,1981-02-04#,,,' 65 'anna@sample.com,,,,,,,,,,,Anna,,,,,"[(\'visual_art\', \'A1\')]"' 66 ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,' 67 '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,,,,,' 68 '"[(\'visual_art\', \'A1\')]",,f,A111111,0,,,created,' 69 '[u\'2012-11-06 13:16:41 WAT - Record created by system\'],' 48 'adm_code,clearance_locked,clr_code,date_of_birth,email,' 49 'employer,firstname,lastname,matric_number,middlename,' 50 'nationality,officer_comment,perm_address,personal_updated,' 51 'phone,reg_number,sex,student_id,suspended,suspended_comment,' 52 'password,state,history,certcode,is_postgrad,current_level,' 53 'current_session\r\nmy adm code,0,my clr code,1981-02-04#,' 54 'anna@sample.com,,Anna,Tester,234,M.,NG,,' 55 '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,' 56 'f,A111111,0,,,created,' 57 '[u\'2014-06-16 08:23:55 UTC - Record created by system\'],' 70 58 'CERT1,0,200,2012\r\n', 71 59 result … … 99 87 result = open(self.outfile, 'rb').read() 100 88 self.assertMatches( 101 'ac,amount_auth,creation_date,gateway_amt,p_category,p_current,' 102 'p_id,p_item,p_level,p_session,p_state,payment_date,provider_amt,' 103 'r_amount_approved,r_card_num,r_code,r_company,r_desc,' 104 'r_pay_reference,thirdparty_amt,student_id,state,' 105 'current_session\r\n' 106 '666,12.12,2012-04-01 13:12:01,,schoolfee,1,my-id,p-item,' 107 '100,2012,paid,2012-04-01 14:12:01,,12.12,' 108 '789,r-code,interswatch,,,,A111111,created,2012\r\n', 89 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 90 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 91 'r_code,r_desc,student_id,state,current_session\r\n666,' 92 '12.12,2012-04-01 13:12:01,schoolfee,1,my-id,p-item,' 93 '100,2012,paid,2012-04-01 14:12:01,12.12,r-code,,' 94 'A111111,created,2012\r\n', 109 95 result 110 96 ) -
main/kofacustom.sampleuni/trunk/src/kofacustom/sampleuni/students/tests/test_student.py
r10765 r11687 22 22 from zope.interface import verify 23 23 from waeup.kofa.testing import FunctionalTestCase 24 from kofacustom.s keleton.students.student import CustomStudent, CustomStudentFactory25 from kofacustom.s keleton.students.studycourse import (24 from kofacustom.sampleuni.students.student import CustomStudent, CustomStudentFactory 25 from kofacustom.sampleuni.students.studycourse import ( 26 26 CustomStudentStudyCourse, CustomStudentStudyCourseFactory) 27 from kofacustom.s keleton.students.studylevel import (27 from kofacustom.sampleuni.students.studylevel import ( 28 28 CustomStudentStudyLevel, CustomCourseTicket, 29 29 CustomStudentStudyLevelFactory, 30 30 CustomCourseTicketFactory) 31 from kofacustom.s keleton.students.interfaces import (31 from kofacustom.sampleuni.students.interfaces import ( 32 32 ICustomStudent, ICustomStudentStudyCourse, 33 33 ICustomStudentStudyLevel, ICustomCourseTicket) 34 from kofacustom.s keleton.testing import FunctionalLayer34 from kofacustom.sampleuni.testing import FunctionalLayer 35 35 36 36
Note: See TracChangeset for help on using the changeset viewer.