Ignore:
Timestamp:
1 Feb 2018, 11:57:38 (7 years ago)
Author:
Henrik Bettermann
Message:

Implement 'switch' to enable and disable displaying course results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r14707 r14944  
    10421042        return
    10431043
     1044    def test_student_access_course_results(self):
     1045        IWorkflowState(self.student).setState('school fee paid')
     1046        self.student['studycourse'].entry_session = 2004
     1047        self.student['studycourse'].current_session = 2004
     1048        self.browser.open(self.login_path)
     1049        self.browser.getControl(name="form.login").value = self.student_id
     1050        self.browser.getControl(name="form.password").value = 'spwd'
     1051        self.browser.getControl("Login").click()
     1052        self.browser.getLink("Study Course").click()
     1053        self.browser.getLink("Add course list").click()
     1054        self.browser.getControl("Create course list now").click()
     1055        self.assertFalse('Score' in self.browser.contents)
     1056        IWorkflowState(self.student).setState('returning')
     1057        self.browser.open(self.studycourse_path + '/100')
     1058        self.assertFalse('Score' in self.browser.contents)
     1059        self.app['configuration']['2004'].show_results = ['ug_ft']
     1060        self.browser.open(self.studycourse_path + '/100')
     1061        self.assertTrue('Score' in self.browser.contents)
     1062        return
     1063
    10441064    def test_student_clearance(self):
    10451065        # Student cant login if their password is not set
Note: See TracChangeset for help on using the changeset viewer.