Changeset 15300 for main/waeup.fceokene/trunk/src/waeup
- Timestamp:
- 18 Jan 2019, 07:42:00 (6 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r14931 r15300 229 229 self.assertEqual(payment.p_level, 100) 230 230 self.assertEqual(payment.p_session, 2004) 231 self.assertEqual(payment.amount_auth, 7045 0.0)231 self.assertEqual(payment.amount_auth, 70457.5) 232 232 self.assertEqual(payment.p_item, u'CERT1') 233 233 self.assertEqual(error, None) … … 242 242 self.assertEqual(payment.p_level, 200) 243 243 self.assertEqual(payment.p_session, 2005) 244 self.assertEqual(payment.amount_auth, 3545 0.0)244 self.assertEqual(payment.amount_auth, 35457.5) 245 245 self.assertEqual(payment.p_item, u'CERT1') 246 246 self.assertEqual(error, None) … … 249 249 self.certificate.study_mode = 'ug_ft' 250 250 error, payment = utils.setPaymentDetails('schoolfee',self.student) 251 self.assertEqual(payment.amount_auth, 5630 0.0)251 self.assertEqual(payment.amount_auth, 56307.5) 252 252 self.assertEqual(error, None) 253 253 # UG cleared students pay 65650 254 254 IWorkflowState(self.student).setState('cleared') 255 255 error, payment = utils.setPaymentDetails('schoolfee',self.student) 256 self.assertEqual(payment.amount_auth, 6580 0.0)256 self.assertEqual(payment.amount_auth, 65807.5) 257 257 self.assertEqual(error, None) 258 258 … … 272 272 self.assertEqual(payment.p_level, 100) 273 273 self.assertEqual(payment.p_session, 2004) 274 self.assertEqual(payment.amount_auth, 27 0.0)274 self.assertEqual(payment.amount_auth, 277.5) 275 275 self.assertEqual(payment.p_item, u'CERT1') 276 276 self.assertEqual(error, None) … … 285 285 self.assertEqual(payment.p_level, 100) 286 286 self.assertEqual(payment.p_session, 2004) 287 self.assertEqual(payment.amount_auth, 10 26.0)287 self.assertEqual(payment.amount_auth, 1033.5) 288 288 self.assertEqual(payment.p_item, u'My bed coordinates') 289 289 self.assertEqual(error, None) … … 292 292 self.assertEqual(payment.p_level, 100) 293 293 self.assertEqual(payment.p_session, 2004) 294 self.assertEqual(payment.amount_auth, 80 88.0)294 self.assertEqual(payment.amount_auth, 8095.5) 295 295 self.assertEqual(payment.p_item, u'') 296 296 self.assertEqual(error, None) … … 300 300 self.assertEqual(payment.p_level, 100) 301 301 self.assertEqual(payment.p_session, 2004) 302 self.assertEqual(payment.amount_auth, 697.5) # 62.5% * 876 + 150302 self.assertEqual(payment.amount_auth, 705.0) # 62.5% * 876 + 157.5 303 303 self.assertEqual(payment.p_item, u'My bed coordinates') 304 304 self.assertEqual(error, None) … … 307 307 self.assertEqual(payment.p_level, 100) 308 308 self.assertEqual(payment.p_session, 2004) 309 self.assertEqual(payment.amount_auth, 30 0.0)309 self.assertEqual(payment.amount_auth, 307.5) 310 310 self.assertEqual(payment.p_item, u'') 311 311 self.assertEqual(error, None) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py
r14931 r15300 84 84 IWorkflowState(self.student).setState('returning') 85 85 error, payment = utils.setPaymentDetails('schoolfee',self.student) 86 self.assertEqual(payment.amount_auth, 161 24.0) # 15875 + 150+ 9986 self.assertEqual(payment.amount_auth, 16131.5) # 15875 + 157.5 + 99 87 87 self.student['studycourse'].previous_verdict = 'O' 88 88 error, payment = utils.setPaymentDetails('schoolfee',self.student) 89 self.assertEqual(payment.amount_auth, 160 25.0) # 15875 + 15089 self.assertEqual(payment.amount_auth, 16032.5) # 15875 + 157.5 90 90 return
Note: See TracChangeset for help on using the changeset viewer.