Changeset 11932 for main/waeup.fceokene
- Timestamp:
- 3 Nov 2014, 12:19:35 (10 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py
r11920 r11932 107 107 108 108 # Third semester payment 109 self.certificate.study_mode = 'nce_sw'110 109 self.app['configuration']['2004'].third_semester_fee = 10000.0 111 110 self.browser.open(self.payments_path) … … 119 118 self.browser.getLink("CollegePAY", index=0).click() 120 119 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="1012044194"'120 '<input type="hidden" name="amount" value="791300" />' 121 in self.browser.contents) 122 self.assertTrue( 123 'item_name="NCE Third Semester Fee" item_amt="476300" bank_id="117" acct_num="1012044015"' 125 124 in self.browser.contents) 126 125 self.assertTrue( -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r11920 r11932 128 128 self.assertMatches('...ticket created...', 129 129 self.browser.contents) 130 self.certificate.study_mode = 'nce_sw' 130 131 self.browser.open(self.payments_path + '/addop') 131 132 self.browser.getControl(name="form.p_category").value = ['third_semester'] … … 133 134 self.assertMatches('...could not be determined...', 134 135 self.browser.contents) 135 self.certificate.study_mode = 'nce_ sw'136 self.certificate.study_mode = 'nce_ft' 136 137 self.browser.open(self.payments_path + '/addop') 137 138 self.browser.getControl(name="form.p_category").value = ['third_semester'] … … 284 285 self.assertEqual(error, None) 285 286 286 self.certificate.study_mode = 'nce_sw'287 287 error, payment = utils.setPaymentDetails('third_semester',self.student) 288 288 self.assertEqual(payment.p_level, 100) 289 289 self.assertEqual(payment.p_session, 2004) 290 self.assertEqual(payment.amount_auth, 6913.0)290 self.assertEqual(payment.amount_auth, 7913.0) 291 291 self.assertEqual(payment.p_item, u'') 292 292 self.assertEqual(error, None) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r11920 r11932 147 147 except (AttributeError, TypeError): 148 148 return _('Study course data are incomplete.'), None 149 elif category == 'third_semester' and student.current_mode == 'nce_ sw':149 elif category == 'third_semester' and student.current_mode == 'nce_ft': 150 150 if student.depcode in ARTS: 151 amount = 5835151 amount = 6835 152 152 else: 153 amount = 6763153 amount = 7763 154 154 elif category == 'schoolfee': 155 155 try:
Note: See TracChangeset for help on using the changeset viewer.