Changeset 14897 for main/waeup.uniben/trunk/src
- Timestamp:
- 14 Nov 2017, 11:08:44 (7 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r14893 r14897 325 325 # self.browser.contents) 326 326 #self.browser.open(self.payments_path + '/addop') 327 # We can't test clearance payment ticket creation at the moment, 328 # since Uniben decided to deactivate clearance for ug students.329 #self.browser.getControl(name="form.p_category").value = ['clearance']330 #self.browser.getControl("Create ticket").click()331 #self.assertMatches('...ticket created...',332 #self.browser.contents)327 328 self.browser.getControl(name="form.p_category").value = ['clearance'] 329 self.browser.getControl("Create ticket").click() 330 self.assertMatches('...ticket created...', 331 self.browser.contents) 332 self.assertTrue('<td>60000.0</td>' in self.browser.contents) 333 333 self.browser.open(self.payments_path + '/addop') 334 334 self.browser.getControl(name="form.p_category").value = ['schoolfee'] … … 351 351 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 352 352 self.browser.getControl("Create ticket").click() 353 354 353 355 354 #self.assertMatches('...You have not yet paid your current/active session...', … … 360 359 #self.browser.getControl(name="form.p_category").value = ['schoolfee'] 361 360 #self.browser.getControl("Create ticket").click() 362 363 361 364 362 self.assertMatches('...ticket created...', … … 640 638 self.assertEqual(payment.p_level, 100) 641 639 self.assertEqual(payment.p_session, 2004) 642 self.assertEqual(payment.amount_auth, 45000.0)640 self.assertEqual(payment.amount_auth, 60000.0) 643 641 self.assertEqual(payment.p_item, u'CERT1') 644 642 self.assertEqual(error, None) -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r14893 r14897 263 263 if p_item is None: 264 264 return _('Study course data are incomplete.'), None 265 #if student.faccode == 'JUPEB':266 # return _('No payment required.'), None267 if student.faccode.startswith('FCETA'):265 if student.faccode == 'JUPEB': 266 amount = 50000.0 267 elif student.faccode.startswith('FCETA'): 268 268 # ASABA and AKOKA 269 269 amount = 30000.0 270 270 elif p_item in ('BSCANA', 'BSCMBC', 'BMLS', 'BSCNUR', 'BSCPHS', 'BDS', 271 271 'MBBSMED', 'MBBSNDU', 'BSCPTY'): 272 amount = 65000.0 273 else: 274 amount = 45000.0 275 # Clearance fee and provider amount have been increased 276 # for new students. 277 if student.entry_session >= 2016: 278 amount += 5000.0 272 amount = 80000.0 273 else: 274 amount = 60000.0 279 275 elif category == 'schoolfee': 280 276 try:
Note: See TracChangeset for help on using the changeset viewer.