Changeset 12049
- Timestamp:
- 24 Nov 2014, 08:40:04 (10 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_browser.py
r11965 r12049 496 496 self.browser.contents) 497 497 return 498 499 def test_student_course_registration(self): 500 # Student cant login if their password is not set 501 IWorkflowState(self.student).setState('school fee paid') 502 self.student['studycourse'].current_level = 200 503 self.browser.open(self.login_path) 504 self.browser.getControl(name="form.login").value = self.student_id 505 self.browser.getControl(name="form.password").value = 'spwd' 506 self.browser.getControl("Login").click() 507 self.browser.open(self.student_path + '/studycourse/add') 508 # Now students can add the current study level 509 self.assertMatches('...Add current level 200 (Year 2)...', 510 self.browser.contents) 511 self.browser.getControl("Create course list now").click() 512 self.browser.getLink("200").click() 513 self.browser.getLink("Edit course list").click() 514 self.browser.getLink("here").click() 515 self.browser.getControl(name="form.course").value = ['COURSE1'] 516 self.course.credits = 100000 517 self.browser.getControl("Add course ticket").click() 518 self.assertFalse( 519 'Total credits exceed ' in self.browser.contents) 520 self.assertEqual( 521 self.student['studycourse']['200']['COURSE1'].course.credits, 100000) 522 self.browser.getControl("Register course list").click() 523 self.assertTrue('Course list has been registered' in self.browser.contents) 524 self.assertEqual(self.student.state, 'courses registered') 525 return -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r12046 r12049 103 103 def maxCredits(self, studylevel): 104 104 # Students do not have any credit load limit 105 return 10000105 return None 106 106 107 107 def selectBed(self, available_beds):
Note: See TracChangeset for help on using the changeset viewer.