Changeset 9438
- Timestamp:
- 27 Oct 2012, 06:17:24 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py
r9278 r9438 115 115 if error is not None: 116 116 return False, error, error 117 log = 'successful payment: %s' % self.p_id117 log = 'successful %s payment: %s' % (self.p_category, self.p_id) 118 118 msg = _('Successful payment') 119 119 return True, msg, log … … 126 126 if error is not None: 127 127 return False, error, error 128 log = ' payment approved: %s' % self.p_id128 log = '%s payment approved: %s' % (self.p_category, self.p_id) 129 129 msg = _('Payment approved') 130 130 return True, msg, log -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9437 r9438 793 793 self.assertMatches('...Payment approved...', 794 794 self.browser.contents) 795 # Approval is logged 796 logfile = os.path.join( 797 self.app['datacenter'].storage, 'logs', 'students.log') 798 logcontent = open(logfile).read() 799 self.assertTrue( 800 'zope.mgr - students.browser.OnlinePaymentApprovePage ' 801 '- K1000000 - schoolfee payment approved' 802 in logcontent) 795 803 796 804 # The authorized amount has been stored in the access code
Note: See TracChangeset for help on using the changeset viewer.