- Timestamp:
- 23 Jul 2023, 21:55:42 (17 months ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r17503 r17511 236 236 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 237 237 self.browser.open(self.payments_path + '/addop') 238 self.assertFalse('schoolfee_1' in self.browser.contents)238 #self.assertFalse('schoolfee_1' in self.browser.contents) 239 239 #self.browser.getControl(name="form.p_category").value = ['schoolfee_1'] 240 240 #self.browser.getControl("Create ticket").click() … … 581 581 self.browser.contents) 582 582 583 self.app['configuration']['2004'].payment_disabled = ['sf_pg']584 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl']585 self.browser.getControl("Create ticket").click()586 self.assertMatches('...ticket created...', self.browser.contents)587 self.certificate.study_mode = 'special_pg_ft'588 self.browser.open(self.payments_path)589 self.browser.getLink("Add current session payment ticket").click()590 self.browser.getControl(name="form.p_category").value = ['schoolfee']591 self.browser.getControl("Create ticket").click()592 self.assertMatches('...This category of payments has been disabled...',593 self.browser.contents)583 #self.app['configuration']['2004'].payment_disabled = ['sf_pg'] 584 #self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 585 #self.browser.getControl("Create ticket").click() 586 #self.assertMatches('...ticket created...', self.browser.contents) 587 #self.certificate.study_mode = 'special_pg_ft' 588 #self.browser.open(self.payments_path) 589 #self.browser.getLink("Add current session payment ticket").click() 590 #self.browser.getControl(name="form.p_category").value = ['schoolfee'] 591 #self.browser.getControl("Create ticket").click() 592 #self.assertMatches('...This category of payments has been disabled...', 593 # self.browser.contents) 594 594 return 595 595 -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py
r17431 r17511 89 89 self.assertEqual(error, u'Personal data form is not properly filled.') 90 90 self.student.father_name = u'Rudolf' 91 #error, payment = utils.setPaymentDetails('schoolfee_incl',self.student) 92 #self.assertEqual(error, 'No additional fees required.') 91 93 error, payment = utils.setPaymentDetails('schoolfee_incl',self.student) 92 self.assertEqual(error, 'No additional fees required.')93 error, payment = utils.setPaymentDetails('schoolfee',self.student)94 94 self.assertEqual(payment.p_level, 200) 95 95 self.assertEqual(payment.p_session, 2005) 96 self.assertEqual(payment.amount_auth, 184088.0)96 self.assertEqual(payment.amount_auth, 240588.0) 97 97 self.assertEqual(payment.p_item, u'CERT1') 98 98 self.assertEqual(error, None)
Note: See TracChangeset for help on using the changeset viewer.