Ignore:
Timestamp:
23 Jul 2022, 16:21:58 (2 years ago)
Author:
Henrik Bettermann
Message:

Revert changes in students section.

File:
1 edited

Legend:

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

    r17029 r17031  
    5959        self.student.nationality = u'NG'
    6060        self.browser.open(self.payments_path + '/addop')
    61         self.browser.getControl(name="form.p_category").value = ['schoolfee_1']
     61        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    6262        self.browser.getControl("Create ticket").click()
    6363        self.assertMatches('...ticket created...',
     
    7070                           self.browser.contents)
    7171        self.assertTrue(
    72             '<span>220000.0</span>' in self.browser.contents)
     72            '<span>40000.0</span>' in self.browser.contents)
    7373        self.payment_url = self.browser.url
    7474        self.browser.getLink("Pay via Interswitch CollegePAY", index=0).click()
     
    7777        self.assertEqual(self.student.current_mode, 'ug_ft')
    7878        self.assertTrue(
    79             '<input type="hidden" name="amount" value="22030000" />' in
    80             self.browser.contents)
    81         self.assertTrue(
    82             'item_name="School Fee - 1st instalment" item_amt="22000000" bank_id="31" acct_num="1489560452"' in
     79            '<input type="hidden" name="amount" value="4030000" />' in
     80            self.browser.contents)
     81        self.assertTrue(
     82            'item_name="School Fee (total amount)" item_amt="4000000" bank_id="31" acct_num="1489560452"' in
     83            self.browser.contents)
     84        self.browser.open(self.payments_path + '/addop')
     85        self.browser.getControl(name="form.p_category").value = ['schoolfee_1']
     86        self.browser.getControl("Create ticket").click()
     87        self.assertMatches('...ticket created...',
     88                           self.browser.contents)
     89        self.browser.open(self.payments_path)
     90        ctrl = self.browser.getControl(name='val_id')
     91        self.value = ctrl.options[1]
     92        self.browser.getLink(self.value).click()
     93        self.assertMatches('...Amount Authorized...',
     94                           self.browser.contents)
     95        self.assertTrue(
     96            '<span>26400.0</span>' in self.browser.contents)
     97        self.payment_url = self.browser.url
     98        self.browser.getLink("Pay via Interswitch CollegePAY", index=0).click()
     99        self.assertMatches('...<input type="hidden" name="pay_item_id" value="Default_Payable_MX26002" />...',
     100                           self.browser.contents)
     101        self.assertEqual(self.student.current_mode, 'ug_ft')
     102        self.assertTrue(
     103            '<input type="hidden" name="amount" value="2670000" />' in
     104            self.browser.contents)
     105        self.assertTrue(
     106            'item_name="School Fee (66% - 1st instalment)" item_amt="2640000" bank_id="31" acct_num="1489560452"' in
    83107            self.browser.contents)
    84108
Note: See TracChangeset for help on using the changeset viewer.