- Timestamp:
- 8 Nov 2021, 08:41:58 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edocons/trunk/src/kofacustom/edocons/interswitch/tests.py
r16698 r16704 80 80 self.browser.contents) 81 81 self.assertTrue( 82 'item_name="School Fee" item_amt="4000000" bank_id="00" acct_num="00000000"' in 82 'item_name="School Fee (total amount)" item_amt="4000000" bank_id="00" acct_num="00000000"' in 83 self.browser.contents) 84 self.browser.open(self.payments_path + '/addop') 85 self.browser.getControl(name="form.p_category").value = ['schoolfee_1'] 86 self.browser.getControl("Create ticket").click() 87 self.assertMatches('...ticket created...', 88 self.browser.contents) 89 self.browser.open(self.payments_path) 90 ctrl = self.browser.getControl(name='val_id') 91 self.value = ctrl.options[1] 92 self.browser.getLink(self.value).click() 93 self.assertMatches('...Amount Authorized...', 94 self.browser.contents) 95 self.assertTrue( 96 '<span>24000.0</span>' in self.browser.contents) 97 self.payment_url = self.browser.url 98 self.browser.getLink("Pay via Interswitch CollegePAY", index=0).click() 99 self.assertMatches('...<input type="hidden" name="pay_item_id" value="Default_Payable_MX26002" />...', 100 self.browser.contents) 101 self.assertEqual(self.student.current_mode, 'ug_ft') 102 self.assertTrue( 103 '<input type="hidden" name="amount" value="2430000" />' in 104 self.browser.contents) 105 self.assertTrue( 106 'item_name="School Fee (60% - 1st instalment)" item_amt="2400000" bank_id="00" acct_num="00000000"' in 83 107 self.browser.contents) 84 108 … … 87 111 acc_payment = createObject('waeup.StudentOnlinePayment') 88 112 acc_payment.p_state = 'unpaid' 89 acc_payment.p_category = ' clearance'113 acc_payment.p_category = 'schoolfee' 90 114 acc_payment.p_id = 'xyz' 91 115 acc_payment.pay_item_id = '123'
Note: See TracChangeset for help on using the changeset viewer.