Changeset 14587
- Timestamp:
- 24 Feb 2017, 09:28:31 (8 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_utils.py
r13535 r14587 1 1 # -*- coding: utf-8 -*- 2 import grok 2 3 from hurry.workflow.interfaces import IWorkflowState 3 4 from zope.component import getUtility … … 86 87 self.assertEqual(msg, 'No certificate assigned.') 87 88 return 89 90 def test_maxCreditsExceeded(self): 91 students_utils = getUtility(IStudentsUtils) 92 studylevel = grok.Container() 93 studylevel.total_credits = 60 94 course = grok.Model() 95 course.credits = 88 96 warning = students_utils.warnCreditsOOR(studylevel, course) 97 self.assertEqual(warning, None) 98 return -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r14273 r14587 102 102 """ 103 103 104 def maxCredits(self, studylevel):104 def warnCreditsOOR(self, studylevel, course=None): 105 105 # Students do not have any credit load limit 106 return None106 return 107 107 108 108 def selectBed(self, available_beds, desired_hostel):
Note: See TracChangeset for help on using the changeset viewer.