Changeset 15155 for main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/tests/test_browser.py
- Timestamp:
- 20 Sep 2018, 07:04:17 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/tests/test_browser.py
r15154 r15155 2123 2123 IWorkflowState(self.student).setState('transcript requested') 2124 2124 notify(grok.ObjectModifiedEvent(self.student)) 2125 self.student .transcript_comment = (2125 self.student['studycourse'].transcript_comment = ( 2126 2126 u'On 07/08/2013 08:59:54 UTC K1000000 wrote:\n\nComment line 1 \n' 2127 2127 'Comment line2\n\nDispatch Address:\nAddress line 1 \n' … … 2175 2175 self.assertTrue('Form has been saved' in self.browser.contents) 2176 2176 # Officer can validate the transcript 2177 self.browser.open(self.stud ent_path)2177 self.browser.open(self.studycourse_path + '/transcript') 2178 2178 self.browser.getLink("Validate transcript").click() 2179 2179 # After validation all manage forms are locked. … … 2207 2207 self.assertTrue( 2208 2208 u'Electronically signed by Ruth Gordon (mrtranscript) on ' 2209 in self.student .transcript_signees)2209 in self.student['studycourse'].transcript_signees) 2210 2210 # Officer can release the transcript 2211 self.browser.open(self.stud ent_path)2211 self.browser.open(self.studycourse_path + '/transcript') 2212 2212 self.browser.getLink("Release transcript").click() 2213 2213 self.assertTrue(' UTC K1000000 wrote:<br><br>Comment line 1 <br>' … … 2220 2220 'UTC mrtranscript wrote:\n\nHello,\nYour transcript has ' 2221 2221 'been sent to the address provided.\n\n' 2222 in self.student .transcript_comment)2222 in self.student['studycourse'].transcript_comment) 2223 2223 # The comment has been logged 2224 2224 logfile = os.path.join( … … 2250 2250 'application/pdf') 2251 2251 # Transcript views are no longer accesssible 2252 self.browser.open(self.student_path)2253 self.assertFalse('studycourse/transcript' in self.browser.contents)2254 2252 self.browser.open(self.studycourse_path) 2255 2253 self.assertFalse('studycourse/transcript' in self.browser.contents) … … 2264 2262 self.assertFalse('Final Transcript' in self.browser.contents) 2265 2263 # ... and transcript process information has been removed 2266 self.assertEqual(self.student .transcript_comment, None)2267 self.assertEqual(self.student .transcript_signees, None)2264 self.assertEqual(self.student['studycourse'].transcript_comment, None) 2265 self.assertEqual(self.student['studycourse'].transcript_signees, None) 2268 2266 2269 2267 def test_landingpage_transcript_officer(self): … … 3430 3428 '... UTC K1000000 wrote:\n\nComment line 1 \n' 3431 3429 'Comment line2\n\nDispatch Address:\nAddress line 1 \n' 3432 'Address line2\n\n', self.student .transcript_comment)3430 'Address line2\n\n', self.student['studycourse'].transcript_comment) 3433 3431 # The comment has been logged 3434 3432 logfile = os.path.join( … … 3699 3697 'firstname,flash_notice,lastname,matric_number,middlename,nationality,' 3700 3698 'officer_comment,perm_address,personal_updated,phone,reg_number,' 3701 'sex,student_id,suspended,suspended_comment, transcript_comment,'3702 ' transcript_signees,password,state,history,certcode,is_postgrad,'3699 'sex,student_id,suspended,suspended_comment,' 3700 'password,state,history,certcode,is_postgrad,' 3703 3701 'current_level,current_session\r\n' 3704 3702 ',,1981-02-04#,aa@aa.ng,,Anna,,Tester,234,,,,,,' 3705 '1234#,123,m,K1000000,0,, ,,{SSHA}' in self.browser.contents)3703 '1234#,123,m,K1000000,0,,{SSHA}' in self.browser.contents) 3706 3704 3707 3705 def test_payment_dates(self): … … 3805 3803 'firstname,flash_notice,lastname,matric_number,middlename,nationality,' 3806 3804 'officer_comment,perm_address,personal_updated,phone,reg_number,' 3807 'sex,student_id,suspended,suspended_comment, transcript_comment,'3808 ' transcript_signees,password,state,history,certcode,is_postgrad,'3805 'sex,student_id,suspended,suspended_comment,' 3806 'password,state,history,certcode,is_postgrad,' 3809 3807 'current_level,current_session\r\n' 3810 3808 ',,1981-02-04#,aa@aa.ng,,Anna,,Tester,234,,,,,,' 3811 '1234#,123,m,K1000000,0,, ,,{SSHA}' in self.browser.contents)3809 '1234#,123,m,K1000000,0,,{SSHA}' in self.browser.contents) 3812 3810 self.assertEqual(len(self.app['datacenter'].running_exports), 1) 3813 3811 job_id = self.app['datacenter'].running_exports[0][0]
Note: See TracChangeset for help on using the changeset viewer.