Ignore:
Timestamp:
29 Sep 2020, 06:31:26 (4 years ago)
Author:
Henrik Bettermann
Message:

Implement ExportPDFPersonalDataSlip (without button
in the base package). Rename ExportPDFBaseDataPlusSlip
ExportPDFStudyCourseBaseDataSlip.

File:
1 edited

Legend:

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

    r16248 r16251  
    27682768        return
    27692769
    2770     def test_student_basedata_slip(self):
     2770    def test_student_studycourse_slip(self):
    27712771        IWorkflowState(self.student).setState('school fee paid')
    27722772        self.browser.open(self.login_path)
     
    27742774        self.browser.getControl(name="form.password").value = 'spwd'
    27752775        self.browser.getControl("Login").click()
    2776         # Students can open base data slip
     2776        # Students can open study course base data slip
    27772777        # (no button available in base package)
    2778         pdf_url = '%s/basedata_slip.pdf' % self.studycourse_path
     2778        pdf_url = '%s/studycourse_slip.pdf' % self.studycourse_path
    27792779        self.browser.open(pdf_url)
    27802780        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    27812781        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
    2782         path = os.path.join(samples_dir(), 'basedata_slip.pdf')
     2782        path = os.path.join(samples_dir(), 'studycourse_slip.pdf')
    27832783        open(path, 'wb').write(self.browser.contents)
    2784         print "Sample PDF basedata_slip.pdf written to %s" % path
     2784        print "Sample PDF studycourse_slip.pdf written to %s" % path
     2785
     2786    def test_student_personal_slip(self):
     2787        IWorkflowState(self.student).setState('school fee paid')
     2788        self.browser.open(self.login_path)
     2789        self.browser.getControl(name="form.login").value = self.student_id
     2790        self.browser.getControl(name="form.password").value = 'spwd'
     2791        self.browser.getControl("Login").click()
     2792        # Students can personal data slip
     2793        # (no button available in base package)
     2794        pdf_url = '%s/personal_slip.pdf' % self.student_path
     2795        self.browser.open(pdf_url)
     2796        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     2797        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     2798        path = os.path.join(samples_dir(), 'personal_slip.pdf')
     2799        open(path, 'wb').write(self.browser.contents)
     2800        print "Sample PDF personal_slip.pdf written to %s" % path
    27852801
    27862802    def test_student_clearance(self):
Note: See TracChangeset for help on using the changeset viewer.