Changeset 15828
- Timestamp:
- 19 Nov 2019, 20:31:30 (5 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py
r14902 r15828 73 73 self.redirect(self.url(self.context, '@@index')) 74 74 return 75 self.context.r_company = u'interswitch' 75 76 student = self.student 76 77 xmldict = self.xmldict … … 135 136 self.context.provider_amt = provider_amt 136 137 self.context.gateway_amt = GATEWAY_AMT 138 self.amount_auth = int(100 * self.context.amount_auth) 137 139 return 138 140 … … 154 156 self.redirect(self.url(self.context, '@@index')) 155 157 return 158 self.context.r_company = u'interswitch' 156 159 xmldict = {} 157 160 provider_amt = 400.0 … … 184 187 self.context.provider_amt = provider_amt 185 188 self.context.gateway_amt = GATEWAY_AMT 189 self.amount_auth = int(100 * self.context.amount_auth) 186 190 return 187 191 -
main/waeup.uniben/trunk/src/waeup/uniben/remita/browser.py
r15817 r15828 185 185 186 186 def update(self): 187 if not module_activated(self.context.student.current_session): 187 if not module_activated( 188 self.context.student.current_session, self.context): 188 189 return 189 190 self.orderId = self.context.p_id … … 279 280 280 281 def update(self): 281 if not module_activated(self.context.__parent__.__parent__.year): 282 if not module_activated( 283 self.context.__parent__.__parent__.year, self.context): 282 284 return 283 285 self.orderId = self.context.p_id -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r15666 r15828 321 321 self.assertMatches('...Amount Authorized...', 322 322 self.browser.contents) 323 # Managers can open payment slip 324 self.browser.getLink("Download payment slip").click() 325 self.assertEqual(self.browser.headers['Status'], '200 Ok') 326 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 323 # Managers can open payment slip because we did not proceed to 324 # any payment gateway 325 self.assertFalse('Download payment slip' in self.browser.contents) 327 326 # Set ticket paid 328 327 ticket = self.student['payments'].items()[0][1] -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py
r15666 r15828 103 103 result = open(self.outfile, 'rb').read() 104 104 self.assertMatches( 105 'ac,amount_auth,creation_date,gateway_amt, p_category,p_combi,p_current,'105 'ac,amount_auth,creation_date,gateway_amt,net_amt,p_category,p_combi,p_current,' 106 106 'p_id,p_item,p_level,p_session,p_state,payment_date,provider_amt,' 107 107 'r_amount_approved,r_card_num,r_code,r_company,r_desc,' 108 108 'r_pay_reference,rebate_amount,staff_rebate,thirdparty_amt,student_id,state,' 109 109 'current_session\r\n' 110 '666,12.12,%s-04-01 13:12:01#,, schoolfee,[],1,my-id,p-item,'110 '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],1,my-id,p-item,' 111 111 '100,%s,paid,%s-04-01 14:12:01#,,12.12,' 112 112 '789,r-code,interswatch,,,,,,A111111,created,2012\r\n'
Note: See TracChangeset for help on using the changeset viewer.