Changeset 11920 for main/waeup.fceokene
- Timestamp:
- 31 Oct 2014, 06:45:52 (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
r11919 r11920 107 107 108 108 # Third semester payment 109 self.certificate.study_mode = 'nce_sw' 109 110 self.app['configuration']['2004'].third_semester_fee = 10000.0 110 111 self.browser.open(self.payments_path) … … 117 118 self.browser.getLink(value).click() 118 119 self.browser.getLink("CollegePAY", index=0).click() 119 120 120 self.assertTrue( 121 121 '<input type="hidden" name="amount" value="691300" />' 122 122 in self.browser.contents) 123 123 self.assertTrue( 124 'item_name="NCE Third Semester Fee" item_amt="376300" bank_id="117" acct_num="1012044 015"'124 'item_name="NCE Third Semester Fee" item_amt="376300" bank_id="117" acct_num="1012044194"' 125 125 in self.browser.contents) 126 126 self.assertTrue( … … 132 132 133 133 # Maintenance fee payment 134 134 self.certificate.study_mode = 'nce_ft' 135 135 self.browser.open(self.payments_path) 136 136 self.browser.open(self.payments_path + '/addop') -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r11919 r11920 133 133 self.assertMatches('...could not be determined...', 134 134 self.browser.contents) 135 self.certificate.study_mode = 'nce_ ft'135 self.certificate.study_mode = 'nce_sw' 136 136 self.browser.open(self.payments_path + '/addop') 137 137 self.browser.getControl(name="form.p_category").value = ['third_semester'] … … 284 284 self.assertEqual(error, None) 285 285 286 self.certificate.study_mode = 'nce_sw' 286 287 error, payment = utils.setPaymentDetails('third_semester',self.student) 287 288 self.assertEqual(payment.p_level, 100) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r11919 r11920 147 147 except (AttributeError, TypeError): 148 148 return _('Study course data are incomplete.'), None 149 elif category == 'third_semester' and student.current_mode == 'nce_ ft':149 elif category == 'third_semester' and student.current_mode == 'nce_sw': 150 150 if student.depcode in ARTS: 151 151 amount = 5835
Note: See TracChangeset for help on using the changeset viewer.