Ignore:
Timestamp:
21 Oct 2024, 12:50:58 (2 weeks ago)
Author:
Henrik Bettermann
Message:

Change max_credits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_browser.py

    r17404 r17947  
    294294        open(path, 'wb').write(self.browser.contents)
    295295        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)
Note: See TracChangeset for help on using the changeset viewer.