Changeset 14228 for main


Ignore:
Timestamp:
25 Oct 2016, 10:12:11 (8 years ago)
Author:
Henrik Bettermann
Message:

Remove course_admitted from application slip.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py

    r14224 r14228  
    276276    #    'scd_sit_type', 'scd_sit_results']
    277277
     278
     279    def _getCourseAdmittedLink(self, view):
     280        return None
     281
     282    def _getDeptAndFaculty(self):
     283        return [None, None]
     284
    278285    @property
    279286    def note(self):
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py

    r14150 r14228  
    2121import os
    2222from zope.event import notify
     23from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
    2324from zope.component import createObject, getUtility
    2425from waeup.kofa.configuration import SessionConfiguration
     
    9495        return
    9596
     97    def test_application_slips(self):
     98        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     99        self.slip_path = self.view_path + '/application_slip.pdf'
     100        self.browser.open(self.manage_path)
     101        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     102        self.fill_correct_values()
     103        self.browser.getControl("Save").click()
     104        IWorkflowState(self.applicant).setState('admitted')
     105        self.applicant.course_admitted = self.certificate
     106        self.browser.open(self.manage_path)
     107        self.browser.getLink("Download application slip").click()
     108        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     109        self.assertEqual(self.browser.headers['Content-Type'],
     110                         'application/pdf')
     111        path = os.path.join(samples_dir(), 'application_slip.pdf')
     112        open(path, 'wb').write(self.browser.contents)
     113        print "Sample application_slip.pdf written to %s" % path
     114
    96115    def test_transcript_application_manage(self):
    97116        # Add trans applicants container
Note: See TracChangeset for help on using the changeset viewer.