Changeset 15803


Ignore:
Timestamp:
13 Nov 2019, 06:48:34 (5 years ago)
Author:
Henrik Bettermann
Message:

Adjust tests to changes in Nigeria package.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py

    r15791 r15803  
    9292        self.assertMatches('...Payment ticket created...',
    9393                           self.browser.contents)
    94         # Payment tickets can be downloaded without submitting the form.
     94        # Ticket can't be downloaded because payment gatewy is not specified
     95        self.assertFalse("Download payment slip" in self.browser.contents)
     96        self.applicant.payments[0].r_company = u'interswitch'
     97        self.browser.open(self.edit_path)
     98        self.browser.getLink(self.applicant.payments[0].p_id).click()
     99        # Payment tickets can now be downloaded without submitting the form.
    95100        self.browser.getLink("Download payment slip").click()
    96101        self.assertEqual(self.browser.headers['Content-Type'],
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r15625 r15803  
    184184        sfpt_value = ctrl.options[1]
    185185        self.student['studycourse'].entry_session = 2013
     186        self.student['payments'][sfpt_value].r_company = u'interswitch'
    186187        self.browser.open(self.payments_path + '/' + sfpt_value)
    187188
     
    634635        # 50250 + 1000 + 500 + 100 = 51850
    635636        self.assertEqual(self.student['payments'][value].amount_auth, 51850.0)
     637        self.student['payments'][value].r_company = u'interswitch'
    636638        self.browser.open(self.browser.url + '/payment_slip.pdf')
    637639        self.assertEqual(self.browser.headers['Status'], '200 Ok')
Note: See TracChangeset for help on using the changeset viewer.