Ignore:
Timestamp:
24 Jun 2021, 07:20:19 (3 years ago)
Author:
Henrik Bettermann
Message:

It seems that Interswitch has chenged their software.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/tests.py

    r16491 r16514  
    281281        self.assertEqual(self.student['payments'][value].provider_amt, 0.0)
    282282        self.assertEqual(self.student['payments'][value].gateway_amt, 300.0)
    283         # Reference number has not yet been saved but can be seen in browser
    284         self.assertEqual(self.student['payments'][value].r_pay_reference, None)
    285283        ref_number = '%s%s' % (MERCHANT_ID,value[1:])
    286284        self.assertTrue(ref_number in self.browser.contents)
     285        self.assertEqual(self.student['payments'][value].r_pay_reference, None)
    287286        self.browser.getControl("Requery").click()
    288287        self.assertTrue('pending' in self.browser.contents)
    289         # Reference number has still not been saved because the element was empty
    290         self.assertEqual(self.student['payments'][value].r_pay_reference, None)
     288        # Reference number has been saved
     289        self.assertEqual(self.student['payments'][value].r_pay_reference, ref_number)
    291290        # Students can download reference number slip
    292291        self.browser.getLink("Pay via Interswitch PAYDirect").click()
Note: See TracChangeset for help on using the changeset viewer.