Changeset 11755 for main/waeup.aaue
- Timestamp:
- 9 Jul 2014, 05:43:16 (10 years ago)
- Location:
- main/waeup.aaue/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/CHANGES.txt
r11653 r11755 4 4 1.2dev (unreleased) 5 5 =================== 6 7 * Customize payment_slip_download_warning. Application payment tickets can be 8 downloaded without submitting the form. 6 9 7 10 * Configure all types school fees and clearance (acceptance) fees in -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py
r11291 r11755 32 32 NigeriaPDFApplicationSlip, 33 33 NigeriaApplicantRegistrationPage, 34 NigeriaExportPDFPaymentSlipPage, 34 35 UG_OMIT_DISPLAY_FIELDS, 35 36 UG_OMIT_PDF_FIELDS, … … 166 167 applicant_id=applicant_id))) 167 168 return 169 170 class CustomExportPDFPaymentSlipPage(NigeriaExportPDFPaymentSlipPage): 171 172 @property 173 def payment_slip_download_warning(self): 174 return '' -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py
r10929 r11755 19 19 from zope.event import notify 20 20 from zope.component import createObject, getUtility 21 from waeup.kofa.configuration import SessionConfiguration 21 22 from waeup.aaue.testing import FunctionalLayer 22 23 from waeup.kofa.applicants.tests.test_browser import ( 23 ApplicantsFullSetup, container_name_1 )24 ApplicantsFullSetup, container_name_1, session_1) 24 25 25 26 class CustomApplicantUITest(ApplicantsFullSetup): … … 44 45 self.assertTrue('<td>Password:</td>' in self.browser.contents) 45 46 return 47 48 def test_payment_slip_download_warning(self): 49 configuration = SessionConfiguration() 50 configuration.academic_session = session_1 51 configuration.application_fee = 200.0 52 self.app['configuration'].addSessionConfiguration(configuration) 53 self.login() 54 self.browser.open(self.edit_path) 55 self.fill_correct_values() 56 self.browser.getControl(name="form.programme_type").value = ['regular'] 57 self.browser.getControl(name="form.nationality").value = ['NG'] 58 self.browser.getControl("Save").click() 59 self.browser.getControl("Add online payment ticket").click() 60 self.assertMatches('...Payment ticket created...', 61 self.browser.contents) 62 # Payment tickets can be downloaded without submitting the form. 63 self.browser.getLink("Download payment slip").click() 64 self.assertEqual(self.browser.headers['Content-Type'], 65 'application/pdf') 66 return -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py
r11546 r11755 105 105 'r_pay_reference,thirdparty_amt,student_id,state,' 106 106 'current_session\r\n' 107 '666,12.12,2012-04-01 13:12:01 ,,schoolfee,1,my-id,p-item,'108 '100,2012,paid,2012-04-01 14:12:01 ,,12.12,'107 '666,12.12,2012-04-01 13:12:01#,,schoolfee,1,my-id,p-item,' 108 '100,2012,paid,2012-04-01 14:12:01#,,12.12,' 109 109 '789,r-code,interswatch,,,,A111111,created,2012\r\n', 110 110 result
Note: See TracChangeset for help on using the changeset viewer.