Ignore:
Timestamp:
26 Oct 2012, 21:48:51 (12 years ago)
Author:
Henrik Bettermann
Message:

Log payment category.

Adjust to previous revisions.

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  
    5656        )
    5757
    58     # Additional fees in custom package
    59 
    6058    maint_fee = schema.Float(
    6159        title = _(u'Maintenance Fee (ignored)'),
     
    6361        required = False,
    6462        )
     63
     64    # Additional fees in custom package
    6565
    6666    gown_fee = schema.Float(
  • main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py

    r9407 r9435  
    118118    payment.payment_date = datetime.utcnow()
    119119    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)
    121122    return True, msg, log
    122123
  • main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py

    r9389 r9435  
    5454        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    5555        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
    5767
    5868#    def callback_url(self, payment_url, resp, apprAmt):
     
    6878
    6979    def test_interswitch_form(self):
    70 
    71         # School fee ticket already created in setUp method
    72         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.url
    8380        # Manager can access InterswitchForm
    8481        self.browser.getLink("CollegePAY", index=0).click()
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r9395 r9435  
    2929from waeup.kofa.app import University
    3030from waeup.kofa.students.tests.test_browser import StudentsFullSetup
     31from waeup.kofa.students.accommodation import BedTicket
    3132from waeup.kofa.testing import FunctionalTestCase
    3233from waeup.kofa.interfaces import (
     
    7273
    7374    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)
    7485
    7586    def test_next_session_allowed(self):
Note: See TracChangeset for help on using the changeset viewer.