- Timestamp:
- 30 Oct 2014, 21:20:11 (10 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/browser.py
r11649 r11919 78 78 xmldict['institution_item_name'] = self.category 79 79 xmldict['institution_name'] = INSTITUTION_NAME 80 if self.context.p_category == 'schoolfee':80 if self.context.p_category in ('schoolfee', 'third_semester'): 81 81 self.pay_item_id = '8302' 82 82 if student.current_mode in ('nce_sw','prence',): … … 119 119 120 120 # Interswitch amount is not part of the xml data 121 if self.context.p_category == 'schoolfee':121 if self.context.p_category in ('schoolfee', 'third_semester'): 122 122 xmltext = """<payment_item_detail> 123 123 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> -
main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py
r11775 r11919 106 106 in self.browser.contents) 107 107 108 # Third semester payment 109 self.app['configuration']['2004'].third_semester_fee = 10000.0 110 self.browser.open(self.payments_path) 111 self.browser.open(self.payments_path + '/addop') 112 self.browser.getControl( 113 name="form.p_category").value = ['third_semester'] 114 self.browser.getControl("Create ticket").click() 115 ctrl = self.browser.getControl(name='val_id') 116 value = ctrl.options[1] 117 self.browser.getLink(value).click() 118 self.browser.getLink("CollegePAY", index=0).click() 119 120 self.assertTrue( 121 '<input type="hidden" name="amount" value="691300" />' 122 in self.browser.contents) 123 self.assertTrue( 124 'item_name="NCE Third Semester Fee" item_amt="376300" bank_id="117" acct_num="1012044015"' 125 in self.browser.contents) 126 self.assertTrue( 127 'item_name="FCEOkene Split" item_amt="140000" bank_id="117" acct_num="1012044039"' 128 in self.browser.contents) 129 self.assertTrue( 130 'item_name="BT Education" item_amt="160000" bank_id="31" acct_num="0026781725"' 131 in self.browser.contents) 132 108 133 # Maintenance fee payment 109 134 … … 136 161 self.browser.contents) 137 162 ctrl = self.browser.getControl(name='val_id') 138 value = ctrl.options[ 1]163 value = ctrl.options[2] 139 164 self.browser.getLink(value).click() 140 165 self.assertMatches('...Amount Authorized...', … … 192 217 self.browser.contents) 193 218 ctrl = self.browser.getControl(name='val_id') 194 value = ctrl.options[ 2]219 value = ctrl.options[3] 195 220 self.browser.getLink(value).click() 196 221 self.assertMatches('...Amount Authorized...',
Note: See TracChangeset for help on using the changeset viewer.