- Timestamp:
- 29 Jan 2026, 14:05:39 (10 months ago)
- Location:
- main/kofacustom.unidel/trunk/src/kofacustom/unidel/students
- Files:
-
- 2 edited
-
tests/test_utils.py (modified) (2 diffs)
-
utils.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/tests/test_utils.py
r18235 r18237 16 16 students_utils = getUtility(IStudentsUtils) 17 17 studylevel = StudentStudyLevel() 18 studylevel.level = 6 2018 studylevel.level = 600 19 19 self.student['studycourse'].addStudentStudyLevel(self.certificate, 20 20 studylevel) … … 29 29 courseticket.dcode = u'ANYDCODE' 30 30 courseticket.fcode = u'ANYFCODE' 31 self.student['studycourse']['6 20']['COURSE1'] = courseticket31 self.student['studycourse']['600']['COURSE1'] = courseticket 32 32 warning = students_utils.warnCreditsOOR(studylevel) 33 33 self.assertEqual(warning, 'Minimum credits not reached.') -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py
r18235 r18237 63 63 level,repeat = divmod(studylevel.level, 100) 64 64 level = level * 100 65 repeat = repeat//10 66 if level > end_level and repeat: 65 if level > end_level: 67 66 if studylevel.total_credits < 2: 68 67 return _('Minimum credits not reached.')
Note: See TracChangeset for help on using the changeset viewer.
