Changeset 15307 for main/waeup.uniben/trunk
- Timestamp:
- 28 Jan 2019, 11:19:24 (6 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r15268 r15307 736 736 def test_edit_level_by_co(self): 737 737 # Create clearance officer 738 self.app['users'].addUser('mrclear', 'mr clearsecret')738 self.app['users'].addUser('mrclear', 'mrClearsecret1') 739 739 self.app['users']['mrclear'].email = 'mrclear@foo.ng' 740 740 self.app['users']['mrclear'].title = 'Carlo Pitter' … … 749 749 self.browser.open(self.login_path) 750 750 self.browser.getControl(name="form.login").value = 'mrclear' 751 self.browser.getControl(name="form.password").value = 'mr clearsecret'751 self.browser.getControl(name="form.password").value = 'mrClearsecret1' 752 752 self.browser.getControl("Login").click() 753 753 self.assertMatches('...You logged in...', self.browser.contents) … … 890 890 def test_handle_clearance_by_co(self): 891 891 # Create clearance officer 892 self.app['users'].addUser('mrclear', 'mr clearsecret')892 self.app['users'].addUser('mrclear', 'mrClearsecret1') 893 893 self.app['users']['mrclear'].email = 'mrclear@foo.ng' 894 894 self.app['users']['mrclear'].title = 'Carlo Pitter' … … 902 902 self.browser.open(self.login_path) 903 903 self.browser.getControl(name="form.login").value = 'mrclear' 904 self.browser.getControl(name="form.password").value = 'mr clearsecret'904 self.browser.getControl(name="form.password").value = 'mrClearsecret1' 905 905 self.browser.getControl("Login").click() 906 906 self.assertMatches('...You logged in...', self.browser.contents) -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r15268 r15307 81 81 'A', 'B', 'F', 'J', 'M', 'C', 'Z'): 82 82 return _("Your are not eligible to book accommodation.") 83 if str(acc_details[ 84 'booking_session']) in student['accommodation'].keys(): 83 bsession = str(acc_details['booking_session']) 84 if bsession in student['accommodation'].keys() \ 85 and not 'booking expired' in \ 86 student['accommodation'][bsession].bed_coordinates: 85 87 return _('You already booked a bed space in ' 86 88 'current accommodation session.')
Note: See TracChangeset for help on using the changeset viewer.