Changeset 9435 for main/waeup.uniben
- Timestamp:
- 26 Oct 2012, 21:48:51 (12 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interfaces.py
r9314 r9435 56 56 ) 57 57 58 # Additional fees in custom package59 60 58 maint_fee = schema.Float( 61 59 title = _(u'Maintenance Fee (ignored)'), … … 63 61 required = False, 64 62 ) 63 64 # Additional fees in custom package 65 65 66 66 gown_fee = schema.Float( -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py
r9407 r9435 118 118 payment.payment_date = datetime.utcnow() 119 119 msg = _('Successful callback received') 120 log = 'valid callback for payment %s: %s' % (payment.p_id, sr) 120 log = 'valid callback for %s payment %s: %s' % ( 121 payment.p_category, payment.p_id, sr) 121 122 return True, msg, log 122 123 -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r9389 r9435 54 54 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 55 55 self.browser.getControl("Create ticket").click() 56 56 self.assertMatches('...ticket created...', 57 self.browser.contents) 58 ctrl = self.browser.getControl(name='val_id') 59 value = ctrl.options[0] 60 self.browser.getLink(value).click() 61 self.assertMatches('...Amount Authorized...', 62 self.browser.contents) 63 self.assertMatches( 64 '...<span>40000.0</span>...', 65 self.browser.contents) 66 self.payment_url = self.browser.url 57 67 58 68 # def callback_url(self, payment_url, resp, apprAmt): … … 68 78 69 79 def test_interswitch_form(self): 70 71 # School fee ticket already created in setUp method72 self.assertMatches('...ticket created...',73 self.browser.contents)74 ctrl = self.browser.getControl(name='val_id')75 value = ctrl.options[0]76 self.browser.getLink(value).click()77 self.assertMatches('...Amount Authorized...',78 self.browser.contents)79 self.assertMatches(80 '...<span>40000.0</span>...',81 self.browser.contents)82 self.payment_url = self.browser.url83 80 # Manager can access InterswitchForm 84 81 self.browser.getLink("CollegePAY", index=0).click() -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r9395 r9435 29 29 from waeup.kofa.app import University 30 30 from waeup.kofa.students.tests.test_browser import StudentsFullSetup 31 from waeup.kofa.students.accommodation import BedTicket 31 32 from waeup.kofa.testing import FunctionalTestCase 32 33 from waeup.kofa.interfaces import ( … … 72 73 73 74 layer = FunctionalLayer 75 76 def setUp(self): 77 super(StudentUITests, self).setUp() 78 79 bedticket = BedTicket() 80 bedticket.booking_session = 2004 81 bedticket.bed_type = u'any bed type' 82 bedticket.bed = self.app['hostels']['hall-1']['hall-1_A_101_A'] 83 bedticket.bed_coordinates = u'My bed coordinates' 84 self.student['accommodation'].addBedTicket(bedticket) 74 85 75 86 def test_next_session_allowed(self):
Note: See TracChangeset for help on using the changeset viewer.