Changeset 9903 for main/waeup.fceokene/trunk/src
- Timestamp:
- 18 Jan 2013, 14:21:57 (12 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py
r9790 r9903 28 28 # If you enable this, please make sure the external services 29 29 # do exist really and are not bothered by being spammed by a test programme. 30 EXTERNAL_TESTS = True30 EXTERNAL_TESTS = False 31 31 32 32 def external_test(func): -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py
r9207 r9903 1 1 # -*- coding: utf-8 -*- 2 import grok 2 3 from waeup.kofa.testing import FunctionalTestCase 3 4 from zope.component import getUtility … … 27 28 self.assertEqual(acc_details['bt'], 'regular_male_fi') 28 29 return 30 31 def test_maxCreditsExceeded(self): 32 students_utils = getUtility(IStudentsUtils) 33 studylevel = grok.Container() 34 studylevel.total_credits = 40 35 course = grok.Model() 36 course.credits = 18 37 max_credits = students_utils.maxCreditsExceeded(studylevel, course) 38 self.assertEqual(max_credits, 0) 39 course.credits = 19 40 max_credits = students_utils.maxCreditsExceeded(studylevel, course) 41 self.assertEqual(max_credits, 58) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r9629 r9903 273 273 return d 274 274 275 def maxCredits(self, studylevel): 276 """Return maximum credits. 277 278 """ 279 return 58 280 275 281 # FCEOkene prefix 276 282 STUDENT_ID_PREFIX = u'K'
Note: See TracChangeset for help on using the changeset viewer.