- Timestamp:
- 9 Jan 2019, 21:17:08 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/tests/test_permissions.py
r14526 r15287 37 37 remove_logger) 38 38 from waeup.kofa.tests.test_async import FunctionalAsyncTestCase 39 39 from waeup.kofa.tests.test_authentication import SECRET 40 40 41 41 … … 157 157 def testReportsPermissions(self): 158 158 # Create reports officer 159 self.app['users'].addUser('mrofficer', 'mrofficer')159 self.app['users'].addUser('mrofficer', SECRET) 160 160 self.app['users']['mrofficer'].email = 'mrofficer@foo.ng' 161 161 self.app['users']['mrofficer'].title = 'Otto Report' … … 163 163 prmglobal.assignRoleToPrincipal('waeup.ReportsOfficer', 'mrofficer') 164 164 # Create reports manager 165 self.app['users'].addUser('mrmanager', 'mrmanager')165 self.app['users'].addUser('mrmanager', SECRET) 166 166 self.app['users']['mrmanager'].email = 'mrmanager@foo.ng' 167 167 self.app['users']['mrmanager'].title = 'Manfred Report' … … 171 171 self.browser.open('http://localhost/app/login') 172 172 self.browser.getControl(name="form.login").value = 'mrofficer' 173 self.browser.getControl(name="form.password").value = 'mrofficer'173 self.browser.getControl(name="form.password").value = SECRET 174 174 self.browser.getControl("Login").click() 175 175 self.trigger_report_creation('2004') … … 184 184 self.browser.open('http://localhost/app/login') 185 185 self.browser.getControl(name="form.login").value = 'mrmanager' 186 self.browser.getControl(name="form.password").value = 'mrmanager'186 self.browser.getControl(name="form.password").value = SECRET 187 187 self.browser.getControl("Login").click() 188 188 self.trigger_report_creation('2005') … … 199 199 self.browser.open('http://localhost/app/login') 200 200 self.browser.getControl(name="form.login").value = 'mrofficer' 201 self.browser.getControl(name="form.password").value = 'mrofficer'201 self.browser.getControl(name="form.password").value = SECRET 202 202 self.browser.getControl("Login").click() 203 203 self.browser.open('http://localhost/app/reports')
Note: See TracChangeset for help on using the changeset viewer.