Changeset 15268 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 17 Dec 2018, 16:43:51 (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
r15251 r15268 974 974 def test_student_accommodation(self): 975 975 self.app['hostels'].allocation_expiration = 7 976 self.student['accommodation'].desired_hostel = u'hall-1' 976 977 bed = Bed() 977 978 bed.bed_id = u'hall-1_A_101_C' … … 991 992 self.browser.getControl("Create ticket").click() 992 993 p_ticket = self.student['payments'].values()[0] 994 self.assertEqual(p_ticket.p_item, 'regular_male_fr (hall-1)') 993 995 p_ticket.approveStudentPayment() 994 996 # The new HOS-0 pin has been created. -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r15108 r15268 235 235 elif category == 'bed_allocation': 236 236 p_item = self.getAccommodationDetails(student)['bt'] 237 desired_hostel = student['accommodation'].desired_hostel 238 if desired_hostel: 239 p_item = u'%s (%s)' % (p_item, desired_hostel) 237 240 amount = academic_session.booking_fee 238 241 if student.is_postgrad:
Note: See TracChangeset for help on using the changeset viewer.