- Timestamp:
- 9 Mar 2017, 16:33:34 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py
r14591 r14617 31 31 return 32 32 33 def test_warnCreditsOOR(self):33 def disabled_test_warnCreditsOOR_semester_exceeded(self): 34 34 students_utils = getUtility(IStudentsUtils) 35 35 studylevel = grok.Container() … … 54 54 return 55 55 56 def test_warnCreditsOOR(self): 57 students_utils = getUtility(IStudentsUtils) 58 studylevel = grok.Container() 59 studylevel.total_credits = 45 60 course = grok.Model() 61 course.credits = 7 62 warning = students_utils.warnCreditsOOR(studylevel, course) 63 self.assertEqual(warning, None) 64 course.credits = 8 65 warning = students_utils.warnCreditsOOR(studylevel, course) 66 self.assertEqual(warning, 'Maximum credits exceeded.') 67 studylevel.total_credits_s1 = 17 68 warning = students_utils.warnCreditsOOR(studylevel) 69 self.assertEqual(warning, 'Minimum credits in 1st semester not reached.') 70 return 71 56 72 def test_set_payment_details(self): 57 73 self.certificate.end_level = 300
Note: See TracChangeset for help on using the changeset viewer.