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/interswitch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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()
Note: See TracChangeset for help on using the changeset viewer.