Ignore:
Timestamp:
18 Apr 2020, 16:42:14 (5 years ago)
Author:
Henrik Bettermann
Message:

Implement referee report slip. Show passport picture on referee pages.

File:
1 edited

Legend:

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

    r15943 r16058  
    3838from zope.testbrowser.testing import Browser
    3939from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
     40from waeup.kofa.browser.tests.test_pdf import samples_dir
    4041from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    4142from waeup.kofa.app import University
     
    17231724            self.browser.url, self.view_path  + '/%s' % report.r_id)
    17241725        self.assertTrue('John Referee' in self.browser.contents)
     1726        # Managers can download a pdf slip
     1727        self.browser.getLink("Download report").click()
     1728        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     1729        self.assertEqual(self.browser.headers['Content-Type'],
     1730                         'application/pdf')
     1731        path = os.path.join(samples_dir(), 'referee_report_slip.pdf')
     1732        open(path, 'wb').write(self.browser.contents)
     1733        print "Sample PDF referee_report_slip.pdf written to %s" % path
    17251734        # Report creation is logged
    17261735        logfile = os.path.join(
Note: See TracChangeset for help on using the changeset viewer.