Changeset 13022 for main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Timestamp:
- 29 May 2015, 06:03:24 (10 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r12628 r13022 138 138 self.browser.getControl(name="form.p_category").value = ['third_semester'] 139 139 self.browser.getControl("Create ticket").click() 140 self.assertMatches('...ticket created...', 141 self.browser.contents) 140 self.assertMatches('...ticket created...', self.browser.contents) 142 141 self.browser.open(self.payments_path + '/addop') 143 142 self.browser.getControl( … … 157 156 self.assertMatches('...ticket created...', 158 157 self.browser.contents) 158 self.certificate.study_mode = 'pd_ft' 159 159 self.browser.open(self.payments_path + '/addop') 160 160 self.browser.getControl(name="form.p_category").value = ['schoolfee'] … … 224 224 225 225 IWorkflowState(self.student).setState('cleared') 226 self.certificate.study_mode = ' nce_ft'227 error, payment = utils.setPaymentDetails('schoolfee',self.student) 228 self.assertEqual(payment.p_level, 100) 229 self.assertEqual(payment.p_session, 2004) 230 self.assertEqual(payment.amount_auth, 14975.0)226 self.certificate.study_mode = 'pd_ft' 227 error, payment = utils.setPaymentDetails('schoolfee',self.student) 228 self.assertEqual(payment.p_level, 100) 229 self.assertEqual(payment.p_session, 2004) 230 self.assertEqual(payment.amount_auth, 35450.0) 231 231 self.assertEqual(payment.p_item, u'CERT1') 232 232 self.assertEqual(error, None) … … 241 241 self.assertEqual(payment.p_level, 200) 242 242 self.assertEqual(payment.p_session, 2005) 243 self.assertEqual(payment.amount_auth, 14025.0)243 self.assertEqual(payment.amount_auth, 35450.0) 244 244 self.assertEqual(payment.p_item, u'CERT1') 245 245 self.assertEqual(error, None) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r12629 r13022 203 203 else: 204 204 amount = 14825 205 ################################ 206 # Payment disabled on 29/05/15 # 207 ################################ 208 amount = 0.0 205 209 # NCE II 206 210 elif student.current_level in (100, 110, 120) and \
Note: See TracChangeset for help on using the changeset viewer.