Changeset 15314 for main/waeup.uniben/trunk/src/waeup/uniben
- Timestamp:
- 29 Jan 2019, 21:47:26 (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
r15307 r15314 682 682 683 683 self.certificate.study_mode = 'pg_ft' 684 error, payment = utils.setPaymentDetails('bed_allocation', 685 self.student, None, None) 686 self.assertEqual(error, u'Select your favoured hostel first.') 687 self.student['accommodation'].desired_hostel = u'no' 684 688 error, payment = utils.setPaymentDetails('bed_allocation', 685 689 self.student, None, None) -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r15307 r15314 238 238 p_item = self.getAccommodationDetails(student)['bt'] 239 239 desired_hostel = student['accommodation'].desired_hostel 240 if desired_hostel: 240 if not desired_hostel: 241 return _(u'Select your favoured hostel first.'), None 242 if desired_hostel and desired_hostel != 'no': 241 243 p_item = u'%s (%s)' % (p_item, desired_hostel) 242 244 amount = academic_session.booking_fee
Note: See TracChangeset for help on using the changeset viewer.