Changeset 13614 for main/waeup.fceokene/trunk/src/waeup
- Timestamp:
- 14 Jan 2016, 10:43:10 (9 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r13459 r13614 348 348 def test_student_accommodation(self): 349 349 del self.student['accommodation']['2004'] 350 self.certificate.study_mode = 'ug_pt' 350 351 # Login 351 352 self.browser.open(self.login_path) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py
r9903 r13614 14 14 students_utils = getUtility(IStudentsUtils) 15 15 acc_details = students_utils.getAccommodationDetails(self.student) 16 self.assertEqual(acc_details['bt'], ' regular_male_fr')16 self.assertEqual(acc_details['bt'], 'ugft_male_fr') 17 17 self.student['studycourse'].current_level = 200 18 self.certificate.study_mode = 'ug_pt' 18 19 acc_details = students_utils.getAccommodationDetails(self.student) 19 20 self.assertEqual(acc_details['bt'], 'regular_male_re') -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r13459 r13614 315 315 sex = 'male' 316 316 special_handling = 'regular' 317 if certificate.study_mode == 'ug_ft': 318 special_handling = 'ugft' 317 319 d['bt'] = u'%s_%s_%s' % (special_handling,sex,bt) 318 320 return d -
main/waeup.fceokene/trunk/src/waeup/fceokene/utils/utils.py
r13128 r13614 37 37 } 38 38 39 SPECIAL_HANDLING_DICT = { 40 'regular': 'Regular Hostel', 41 'blocked': 'Blocked Hostel', 42 'ugft': 'Undergraduate Fulltime Hostel' 43 } 39 44 40 45 PAYMENT_CATEGORIES = {
Note: See TracChangeset for help on using the changeset viewer.