- Timestamp:
- 20 Sep 2018, 19:11:42 (6 years ago)
- Location:
- main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/dynamicroles.py
r15155 r15157 47 47 'waeup.local.LocalWorkflowManager': 'waeup.WorkflowManager', 48 48 'waeup.local.TranscriptOfficer': 'waeup.TranscriptOfficer', 49 'waeup.local.TranscriptSignee': 'waeup.TranscriptSignee', 49 50 } 50 51 -
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/tests/test_browser.py
r15155 r15157 2268 2268 IWorkflowState(self.student).setState('transcript requested') 2269 2269 notify(grok.ObjectModifiedEvent(self.student)) 2270 self.student.transcript_comment = (2271 u'On 07/08/2013 08:59:54 UTC K1000000 wrote:\n\nComment line 1 \n'2272 'Comment line2\n\nDispatch Address:\nAddress line 1 \n'2273 'Address line2\n\n')2274 2270 # Create transcript officer 2275 2271 self.app['users'].addUser('mrtranscript', 'mrtranscriptsecret') … … 2289 2285 self.browser.getControl("Login").click() 2290 2286 self.assertMatches('...You logged in...', self.browser.contents) 2291 # Officer is on landing page 2287 # Officer is on landing page and does see the transcript link 2288 self.assertTrue( 2289 'http://localhost/app/students/K1000000/studycourse/transcript' 2290 in self.browser.contents) 2291 2292 def test_landingpage_transcript_signee(self): 2293 IWorkflowState(self.student).setState('transcript validated') 2294 notify(grok.ObjectModifiedEvent(self.student)) 2295 # Create transcript signee 2296 self.app['users'].addUser('mrtranscript', 'mrtranscriptsecret') 2297 self.app['users']['mrtranscript'].email = 'mrtranscript@foo.ng' 2298 self.app['users']['mrtranscript'].title = 'Ruth Gordon' 2299 # We assign transcript officer role at faculty level 2300 fac = self.app['faculties']['fac1'] 2301 prmlocal = IPrincipalRoleManager(fac) 2302 prmlocal.assignRoleToPrincipal( 2303 'waeup.local.TranscriptSignee', 'mrtranscript') 2304 notify(LocalRoleSetEvent( 2305 fac, 'waeup.local.TranscriptSignee', 'mrtranscript', granted=True)) 2306 # Login as transcript officer 2307 self.browser.open(self.login_path) 2308 self.browser.getControl(name="form.login").value = 'mrtranscript' 2309 self.browser.getControl(name="form.password").value = 'mrtranscriptsecret' 2310 self.browser.getControl("Login").click() 2311 self.assertMatches('...You logged in...', self.browser.contents) 2312 # Officer is on landing page and does see the transcript link 2292 2313 self.assertTrue( 2293 2314 'http://localhost/app/students/K1000000/studycourse/transcript'
Note: See TracChangeset for help on using the changeset viewer.