Ignore:
Timestamp:
25 Jan 2021, 15:35:20 (4 years ago)
Author:
Henrik Bettermann
Message:

Implement medical questionnaire fee.

File:
1 edited

Legend:

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

    r16385 r16386  
    11701170
    11711171    def test_student_medical_questionnaire(self):
     1172        self.app['configuration']['2004'].medical_quest_fee = 1000.0
    11721173        IWorkflowInfo(self.student).fireTransition('admit')
    11731174        self.browser.open(self.login_path)
     
    11791180        self.browser.getLink("Base Data").click()
    11801181        self.browser.getLink("Medical Questionnaire").click()
     1182        self.assertTrue('Please pay medical questionnaire payment first' in
     1183            self.browser.contents)
     1184        self.assertEqual(self.browser.url, self.student_path)
     1185        self.browser.open(self.payments_path)
     1186        self.browser.getLink("Add current session payment ticket").click()
     1187        self.browser.getControl(name="form.p_category").value = ['medical_quest']
     1188        self.browser.getControl("Create ticket").click()
     1189        p_ticket = self.student['payments'].values()[0]
     1190        p_ticket.approveStudentPayment()
     1191        self.browser.getLink("Base Data").click()
     1192        self.browser.getLink("Medical Questionnaire").click()
    11811193        self.browser.getLink("Download medical questionnaire slip").click()
    11821194        self.assertEqual(self.browser.headers['Status'], '200 Ok')
Note: See TracChangeset for help on using the changeset viewer.