Changeset 17947 for main/kofacustom.iuokada/trunk/src/kofacustom
- Timestamp:
- 21 Oct 2024, 12:50:58 (2 weeks ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_browser.py
r17404 r17947 294 294 open(path, 'wb').write(self.browser.contents) 295 295 print "Sample PDF JUPEB admission_slip.pdf written to %s" % path 296 297 def test_student_course_registration(self): 298 # Student cant login if their password is not set 299 IWorkflowState(self.student).setState('school fee paid') 300 self.student['studycourse'].current_level = 200 301 self.browser.open(self.login_path) 302 self.browser.getControl(name="form.login").value = self.student_id 303 self.browser.getControl(name="form.password").value = 'spwd' 304 self.browser.getControl("Login").click() 305 self.browser.getLink("Study Course").click() 306 self.browser.getLink("Add course list").click() 307 self.assertMatches('...Add current level 200 (Year 2)...', 308 self.browser.contents) 309 self.browser.getControl("Create course list now").click() 310 self.browser.getLink("200").click() 311 self.browser.getLink("Edit course list").click() 312 self.browser.getLink("here").click() 313 self.browser.getControl(name="form.course").value = ['COURSE1'] 314 self.course.credits = 100 315 self.browser.getControl("Add course ticket").click() 316 self.assertMatches( 317 '...Maximum credits exceeded...', self.browser.contents) -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py
r17900 r17947 77 77 if end_level and studylevel.level >= end_level: 78 78 max_credits = 80 79 #if studylevel.certcode == 'LLB': 80 # max_credits = 50 81 if studylevel.certcode == 'MBBSMED' and studylevel.level == 200: 82 max_credits = 100 79 83 if course and studylevel.total_credits + course.credits > max_credits: 80 84 return _('Maximum credits exceeded.')
Note: See TracChangeset for help on using the changeset viewer.