- Timestamp:
- 22 Mar 2022, 12:46:49 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r16365 r16899 129 129 self.assertMatches('...ticket created...', 130 130 self.browser.contents) 131 self.certificate.study_mode = 'nce_sw'132 self.browser.open(self.payments_path + '/addop')133 self.browser.getControl(name="form.p_category").value = ['third_semester']134 self.browser.getControl("Create ticket").click()135 self.assertMatches('...could not be determined...',136 self.browser.contents)137 self.certificate.study_mode = 'nce_ft'138 self.browser.open(self.payments_path + '/addop')139 self.browser.getControl(name="form.p_category").value = ['third_semester']140 self.student['studycourse'].current_level = 300141 self.browser.getControl("Create ticket").click()142 self.assertMatches('...Make NCE 3 school fee payment first...', self.browser.contents)131 #self.certificate.study_mode = 'nce_sw' 132 #self.browser.open(self.payments_path + '/addop') 133 #self.browser.getControl(name="form.p_category").value = ['third_semester'] 134 #self.browser.getControl("Create ticket").click() 135 #self.assertMatches('...could not be determined...', 136 # self.browser.contents) 137 #self.certificate.study_mode = 'nce_ft' 138 #self.browser.open(self.payments_path + '/addop') 139 #self.browser.getControl(name="form.p_category").value = ['third_semester'] 140 #self.student['studycourse'].current_level = 300 141 #self.browser.getControl("Create ticket").click() 142 #self.assertMatches('...Amount could not be determined...', self.browser.contents) 143 143 self.browser.open(self.payments_path + '/addop') 144 144 self.browser.getControl( … … 290 290 self.assertEqual(error, None) 291 291 292 error, payment = utils.setPaymentDetails('third_semester',self.student)293 self.assertEqual(error, u'Amount could not be determined.')294 self.student['studycourse'].current_level = 300295 error, payment = utils.setPaymentDetails('third_semester',self.student)296 self.assertEqual(error, u'Make NCE 3 school fee payment first.')297 payment = createObject('waeup.StudentOnlinePayment')298 payment.p_category = u'schoolfee'299 payment.p_session = self.student.current_session300 payment.p_item = u'My Certificate'301 payment.p_id = u'anyid'302 self.student['payments']['anykey'] = payment303 payment.p_state = 'paid'304 payment.p_level = 300305 error, payment = utils.setPaymentDetails('third_semester',self.student)306 self.assertEqual(payment.p_level, 300)307 self.assertEqual(payment.p_session, 2004)308 self.assertEqual(payment.amount_auth, 7938)309 self.assertEqual(payment.p_item, u'')310 self.assertEqual(error, None)292 #error, payment = utils.setPaymentDetails('third_semester',self.student) 293 #self.assertEqual(error, u'Amount could not be determined.') 294 #self.student['studycourse'].current_level = 300 295 #error, payment = utils.setPaymentDetails('third_semester',self.student) 296 #self.assertEqual(error, u'Amount could not be determined.') 297 #payment = createObject('waeup.StudentOnlinePayment') 298 #payment.p_category = u'schoolfee' 299 #payment.p_session = self.student.current_session 300 #payment.p_item = u'My Certificate' 301 #payment.p_id = u'anyid' 302 #self.student['payments']['anykey'] = payment 303 #payment.p_state = 'paid' 304 #payment.p_level = 300 305 #error, payment = utils.setPaymentDetails('third_semester',self.student) 306 #self.assertEqual(payment.p_level, 300) 307 #self.assertEqual(payment.p_session, 2004) 308 #self.assertEqual(payment.amount_auth, 7938) 309 #self.assertEqual(payment.p_item, u'') 310 #self.assertEqual(error, None) 311 311 312 312 self.certificate.study_mode = u'nce_sw' 313 313 error, payment = utils.setPaymentDetails('hostel_maintenance',self.student) 314 self.assertEqual(payment.p_level, 300)314 self.assertEqual(payment.p_level, 100) 315 315 self.assertEqual(payment.p_session, 2004) 316 316 self.assertEqual(payment.amount_auth, 547.5) # 62.5% * 876 … … 319 319 320 320 error, payment = utils.setPaymentDetails('bed_allocation',self.student) 321 self.assertEqual(payment.p_level, 300)321 self.assertEqual(payment.p_level, 100) 322 322 self.assertEqual(payment.p_session, 2004) 323 323 self.assertEqual(payment.amount_auth, 150)
Note: See TracChangeset for help on using the changeset viewer.