Changeset 13421 for main/waeup.aaue/trunk/src/waeup/aaue
- Timestamp:
- 9 Nov 2015, 14:13:28 (9 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/tests.py
r13374 r13421 57 57 self.student.nationality = u'NG' 58 58 self.browser.open(self.payments_path + '/addop') 59 self.browser.getControl(name="form.p_category").value = ['clearance ']59 self.browser.getControl(name="form.p_category").value = ['clearance_incl'] 60 60 self.browser.getControl("Create ticket").click() 61 61 self.assertMatches('...ticket created...', … … 65 65 66 66 self.browser.open(self.payments_path + '/addop') 67 self.browser.getControl(name="form.p_category").value = ['schoolfee ']67 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 68 68 self.browser.getControl("Create ticket").click() 69 69 self.assertMatches('...ticket created...', … … 108 108 'FeeStatus=unpaid~' 109 109 'Semester=N/A~' 110 'PaymentType=School Fee ~'110 'PaymentType=School Fee Plus~' 111 111 'MatricNumber=E1000000~' 112 112 'Email=aa@aa.ng~' … … 164 164 'FeeStatus=unpaid~' 165 165 'Semester=N/A~' 166 'PaymentType=School Fee ~'166 'PaymentType=School Fee Plus~' 167 167 'MatricNumber=E1000000~' 168 168 'Email=aa@aa.ng~' -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r13410 r13421 154 154 self.student.nationality = u'NG' 155 155 self.browser.open(self.payments_path + '/addop') 156 self.browser.getControl(name="form.p_category").value = ['schoolfee ']156 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 157 157 self.browser.getControl("Create ticket").click() 158 158 self.assertTrue('ticket created' in … … 182 182 in self.browser.contents) 183 183 self.assertTrue( 184 'item_name="School Fee " item_amt="4750000" bank_id="117" '184 'item_name="School Fee Plus" item_amt="4750000" bank_id="117" ' 185 185 'acct_num="1010827641"' in self.browser.contents) 186 186 … … 228 228 self.student.nationality = u'NG' 229 229 self.browser.open(self.payments_path + '/addop') 230 self.browser.getControl(name="form.p_category").value = ['clearance ']230 self.browser.getControl(name="form.p_category").value = ['clearance_incl'] 231 231 self.browser.getControl("Create ticket").click() 232 232 self.assertTrue('ticket created' in self.browser.contents) … … 245 245 in self.browser.contents) 246 246 self.assertTrue( 247 'item_name="Acceptance Fee " item_amt="4280000" bank_id="117" '247 'item_name="Acceptance Fee Plus" item_amt="4280000" bank_id="117" ' 248 248 'acct_num="1010827641"' in self.browser.contents) 249 249 250 def test_interswitch_form_ welfare_fees(self):250 def test_interswitch_form_concession_fees(self): 251 251 self.certificate.study_mode = 'ug_pt' 252 self.app['configuration']['2004']. welfare_fee = 1567.0252 self.app['configuration']['2004'].concession_fee = 1567.0 253 253 # Manager can access InterswitchForm 254 254 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') … … 257 257 self.student.nationality = u'NG' 258 258 self.browser.open(self.payments_path + '/addop') 259 self.browser.getControl(name="form.p_category").value = [' welfare']259 self.browser.getControl(name="form.p_category").value = ['concessional'] 260 260 self.browser.getControl("Create ticket").click() 261 261 self.assertTrue('ticket created' in self.browser.contents) … … 269 269 self.certificate.study_mode = 'ug_ft' 270 270 self.browser.getLink("CollegePAY", index=0).click() 271 self.assertTrue('<input type="hidden" name="pay_item_id" value="10 5" />'271 self.assertTrue('<input type="hidden" name="pay_item_id" value="107" />' 272 272 in self.browser.contents) 273 273 self.assertTrue('Total Amount Authorized:' in self.browser.contents) … … 276 276 in self.browser.contents) 277 277 self.assertTrue( 278 'item_name=" Student Welfare AssuranceFee" item_amt="131700" '279 'bank_id="1 23" acct_num="1006407792"'278 'item_name="Concessional Fee" item_amt="131700" ' 279 'bank_id="117" acct_num="1010835352"' 280 280 in self.browser.contents) 281 281 … … 320 320 self.student.nationality = u'NG' 321 321 self.browser.open(self.payments_path + '/addop') 322 self.browser.getControl(name="form.p_category").value = ['schoolfee ']322 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 323 323 self.browser.getControl("Create ticket").click() 324 324 self.assertTrue('ticket created' in self.browser.contents) -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r13418 r13421 116 116 self.browser.open(self.payments_path) 117 117 self.browser.getLink("Add current session payment ticket").click() 118 self.browser.getControl(name="form.p_category").value = ['schoolfee ']118 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 119 119 self.browser.getControl("Create ticket").click() 120 120 self.assertMatches('...Wrong state...', … … 131 131 # self.browser.contents) 132 132 self.app['configuration']['2004'].clearance_fee = 666.0 133 self.browser.getControl(name="form.p_category").value = ['clearance ']133 self.browser.getControl(name="form.p_category").value = ['clearance_incl'] 134 134 self.browser.getControl("Create ticket").click() 135 135 ctrl = self.browser.getControl(name='val_id') … … 139 139 self.student.nationality = u'NG' 140 140 self.browser.open(self.payments_path + '/addop') 141 self.browser.getControl(name="form.p_category").value = ['schoolfee ']141 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 142 142 self.browser.getControl("Create ticket").click() 143 143 self.assertMatches('...ticket created...', … … 169 169 # ... no further school fee ticket can be added. 170 170 self.browser.open(self.payments_path + '/addop') 171 self.browser.getControl(name="form.p_category").value = ['schoolfee ']171 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 172 172 self.browser.getControl("Create ticket").click() 173 173 self.assertMatches('...Wrong state...', … … 243 243 IWorkflowState(self.student).setState('cleared') 244 244 self.browser.getLink("Add current session payment ticket").click() 245 self.browser.getControl(name="form.p_category").value = ['schoolfee ']245 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 246 246 self.browser.getControl("Create ticket").click() 247 247 ctrl = self.browser.getControl(name='val_id') … … 265 265 self.assertTrue( 266 266 'zope.mgr - students.browser.OnlinePaymentApproveView ' 267 '- E1000000 - schoolfee payment approved'267 '- E1000000 - schoolfee_incl payment approved' 268 268 in logcontent) 269 269 # ... and in payments.log … … 272 272 logcontent = open(logfile).read() 273 273 self.assertTrue( 274 '"zope.mgr",E1000000,%s,schoolfee ,6666.0,AP,,,,,,\n' % value274 '"zope.mgr",E1000000,%s,schoolfee_incl,6666.0,AP,,,,,,\n' % value 275 275 in logcontent) 276 276 # Student is in state school fee paid, no activation
Note: See TracChangeset for help on using the changeset viewer.