Changeset 15609 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 26 Sep 2019, 11:38:36 (5 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r15606 r15609 3783 3783 'adm_code,clr_code,date_of_birth,email,employer,' 3784 3784 'firstname,flash_notice,lastname,matric_number,middlename,nationality,' 3785 'officer_comment,perm_address,personal_updated,phone,reg_number,' 3785 'officer_comment,parents_email,perm_address,' 3786 'personal_updated,phone,reg_number,' 3786 3787 'sex,student_id,suspended,suspended_comment,' 3787 3788 'password,state,history,certcode,is_postgrad,' 3788 3789 'current_level,current_session\r\n' 3789 ',,1981-02-04#,aa@aa.ng,,Anna,,Tester,234,,,,,, '3790 ',,1981-02-04#,aa@aa.ng,,Anna,,Tester,234,,,,,,,' 3790 3791 '1234#,123,m,K1000000,0,,{SSHA}' in self.browser.contents) 3791 3792 self.browser.open('http://localhost/app/datacenter/@@export') … … 3911 3912 'adm_code,clr_code,date_of_birth,email,employer,' 3912 3913 'firstname,flash_notice,lastname,matric_number,middlename,nationality,' 3913 'officer_comment,perm_address,personal_updated,phone,reg_number,' 3914 'officer_comment,parents_email,perm_address,' 3915 'personal_updated,phone,reg_number,' 3914 3916 'sex,student_id,suspended,suspended_comment,' 3915 3917 'password,state,history,certcode,is_postgrad,' 3916 3918 'current_level,current_session\r\n' 3917 ',,1981-02-04#,aa@aa.ng,,Anna,,Tester,234,,,,,, '3919 ',,1981-02-04#,aa@aa.ng,,Anna,,Tester,234,,,,,,,' 3918 3920 '1234#,123,m,K1000000,0,,{SSHA}' in self.browser.contents) 3919 3921 self.assertEqual(len(self.app['datacenter'].running_exports), 1) … … 4675 4677 # Tests for UI actions when acting as parents. 4676 4678 4679 def test_request_ppw(self): 4680 self.app['students'][self.student_id].parents_email = 'par@yy.zz' 4681 self.browser.open('http://localhost/app/requestppw') 4682 self.browser.getControl(name="form.lastname").value = 'tESTer' 4683 self.browser.getControl(name="form.number").value = '123' 4684 self.browser.getControl(name="form.email").value = 'par@yy.zz' 4685 self.browser.getControl("Send temporary login credentials").click() 4686 self.assertTrue('Your password request was successful.' 4687 in self.browser.contents) 4688 logfile = os.path.join( 4689 self.app['datacenter'].storage, 'logs', 'main.log') 4690 logcontent = open(logfile).read() 4691 self.assertTrue('zope.anybody - students.browser.RequestParentsPasswordPage - ' 4692 '123 (K1000000) - par@yy.zz' in logcontent) 4693 return 4694 4677 4695 def test_login_as_parents(self): 4678 # S student login still works after all the changes made4696 # Student login still works after all the changes made 4679 4697 self.browser.open(self.login_path) 4680 4698 self.browser.getControl(name="form.login").value = self.student_id -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r15546 r15609 126 126 std_csv_entry = ( 127 127 'my adm code,my clr code,1981-02-04#,anna@sample.com,,' 128 'Anna,,Tester,234,M.,NG,, "Studentroad 21\nLagos 123456\n",,'128 'Anna,,Tester,234,M.,NG,,,"Studentroad 21\nLagos 123456\n",,' 129 129 '+234-123-12345#,123,f,A111111,0,,,created' 130 130 ) … … 158 158 'adm_code,clr_code,date_of_birth,email,' 159 159 'employer,firstname,flash_notice,lastname,matric_number,middlename,' 160 'nationality,officer_comment,perm_address,personal_updated,' 160 'nationality,officer_comment,parents_email,' 161 'perm_address,personal_updated,' 161 162 'phone,reg_number,sex,student_id,suspended,suspended_comment,' 162 163 'password,state,history,' 163 164 'certcode,is_postgrad,current_level,current_session\r\n' 164 165 'my adm code,my clr code,' 165 '1981-02-04#,anna@sample.com,,Anna,,Tester,234,M.,NG,, '166 '1981-02-04#,anna@sample.com,,Anna,,Tester,234,M.,NG,,,' 166 167 '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,f,' 167 168 'A111111,0,,,created' … … 180 181 'adm_code,clr_code,date_of_birth,email,' 181 182 'employer,firstname,flash_notice,lastname,matric_number,middlename,' 182 'nationality,officer_comment,perm_address,personal_updated,' 183 'nationality,officer_comment,parents_email,' 184 'perm_address,personal_updated,' 183 185 'phone,reg_number,sex,student_id,suspended,suspended_comment,' 184 186 'password,state,history,certcode,' 185 187 'is_postgrad,current_level,current_session\r\n' 186 188 'my adm code,my clr code,1981-02-04#,anna@sample.com,,' 187 'Anna,,Tester,234,M.,NG,, "Studentroad 21\nLagos 123456\n"'189 'Anna,,Tester,234,M.,NG,,,"Studentroad 21\nLagos 123456\n"' 188 190 ',,+234-123-12345#,123,f,A111111,0,,,created' 189 191 in result … … 200 202 'adm_code,clr_code,date_of_birth,email,' 201 203 'employer,firstname,flash_notice,lastname,matric_number,middlename,' 202 'nationality,officer_comment,perm_address,personal_updated,' 204 'nationality,officer_comment,parents_email,' 205 'perm_address,personal_updated,' 203 206 'phone,reg_number,sex,student_id,suspended,suspended_comment,' 204 207 'password,state,history,certcode,' 205 208 'is_postgrad,current_level,current_session\r\n' 206 209 'my adm code,my clr code,1981-02-04#,anna@sample.com,,' 207 'Anna,,Tester,234,M.,NG,, "Studentroad 21\nLagos 123456\n"'210 'Anna,,Tester,234,M.,NG,,,"Studentroad 21\nLagos 123456\n"' 208 211 ',,+234-123-12345#,123,f,A111111,0,,,created' 209 212 in result
Note: See TracChangeset for help on using the changeset viewer.