- Timestamp:
- 31 Jan 2022, 09:01:03 (3 years ago)
- Location:
- main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py
r16760 r16762 332 332 # amount_auth is being ignored. However, the sum of all split payments 333 333 # must coincide with the amount_auth configured in students/utils.py 334 xmldict['amt1'] = 100 * 1000335 xmldict['amt2'] = 100 * 500334 xmldict['amt1'] = 100 * 2000 335 xmldict['amt2'] = 100 * 1000 336 336 xmldict['amt3'] = 100 * 900 337 xmldict['amt4'] = 100 * 500337 xmldict['amt4'] = 100 * 1000 338 338 339 339 xmltext = """<payment_item_detail> -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py
r16760 r16762 227 227 self.browser.getControl("Create ticket").click() 228 228 self.assertMatches('...ticket created...', self.browser.contents) 229 self.assertTrue('<span> 3150.0</span>' in self.browser.contents)230 self.payment_url = self.browser.url 231 self.browser.getLink("Pay via Interswitch", index=0).click() 232 self.assertTrue('<item_detail item_id="1" item_name="SUG" item_amt=" 100000" bank_id="11" acct_num="0038079930" />'233 in self.browser.contents) 234 self.assertTrue('<item_detail item_id="2" item_name="Students Welfare" item_amt=" 50000" bank_id="11" acct_num="0037892949" />'229 self.assertTrue('<span>5150.0</span>' in self.browser.contents) 230 self.payment_url = self.browser.url 231 self.browser.getLink("Pay via Interswitch", index=0).click() 232 self.assertTrue('<item_detail item_id="1" item_name="SUG" item_amt="200000" bank_id="11" acct_num="0038079930" />' 233 in self.browser.contents) 234 self.assertTrue('<item_detail item_id="2" item_name="Students Welfare" item_amt="100000" bank_id="11" acct_num="0037892949" />' 235 235 in self.browser.contents) 236 236 self.assertTrue('<item_detail item_id="3" item_name="Anti-Cult Book" item_amt="90000" bank_id="11" acct_num="0037892949" />' 237 237 in self.browser.contents) 238 self.assertTrue('<item_detail item_id="4" item_name="NADESSTU" item_amt=" 50000" bank_id="11" acct_num="0036375968" />'238 self.assertTrue('<item_detail item_id="4" item_name="NADESSTU" item_amt="100000" bank_id="11" acct_num="0036375968" />' 239 239 in self.browser.contents) 240 240
Note: See TracChangeset for help on using the changeset viewer.