Changeset 9755 for main/waeup.aaue/trunk/src/waeup/aaue/students
- Timestamp:
- 1 Dec 2012, 10:05:53 (12 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/payments.py
r8753 r9755 27 27 from waeup.kofa.utils.helpers import attrs_to_fields 28 28 from waeup.aaue.students.interfaces import ICustomStudentOnlinePayment 29 from waeup.aaue.payments.interfaces import payment_categories30 29 31 30 class CustomStudentOnlinePayment(StudentOnlinePayment): … … 48 47 return self.__parent__.__parent__ 49 48 50 @property51 def category(self):52 return payment_categories.getTermByToken(self.p_category).title53 54 49 CustomStudentOnlinePayment = attrs_to_fields(CustomStudentOnlinePayment) 55 50 -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r9527 r9755 92 92 self.browser.open(self.payments_path) 93 93 self.browser.getLink("Add current session payment ticket").click() 94 self.browser.getControl(name="form.p_category").value = ['schoolfee_1'] 94 95 self.browser.getControl("Create ticket").click() 95 96 self.assertMatches('...Wrong state...', … … 101 102 self.browser.contents) 102 103 self.app['configuration']['2004'].school_fee_base = 6666.0 104 self.browser.getControl(name="form.p_category").value = ['schoolfee_1'] 103 105 self.browser.getControl("Create ticket").click() 104 106 self.assertMatches('...ticket created...', … … 117 119 ticket.p_state = 'paid' 118 120 self.browser.open(self.payments_path + '/addop') 121 self.browser.getControl(name="form.p_category").value = ['schoolfee_1'] 119 122 self.browser.getControl("Create ticket").click() 120 123 self.assertMatches('...This type of payment has already been made...',
Note: See TracChangeset for help on using the changeset viewer.