Ignore:
Timestamp:
5 Dec 2019, 16:50:14 (5 years ago)
Author:
Henrik Bettermann
Message:

Reduce transaction charge from 250 to 200.

File:
1 edited

Legend:

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

    r15803 r15867  
    274274        self.assertEqual(self.student['payments'].values()[0].p_category, 'schoolfee_1')
    275275        self.assertEqual(self.student['payments'].values()[1].p_category, 'schoolfee_2')
    276         # (6666-250)/2 + 1250 + 750 - 500 + 250
    277         self.assertEqual(self.student['payments'].values()[0].amount_auth, 4958.0)
    278         # (6666-250)/2 + 250
    279         self.assertEqual(self.student['payments'].values()[1].amount_auth, 3458.0)
     276        # (6666-200)/2 + 1250 + 750 - 400 + 200
     277        self.assertEqual(self.student['payments'].values()[0].amount_auth, 5033.0)
     278        # (6666-200)/2 + 200
     279        self.assertEqual(self.student['payments'].values()[1].amount_auth, 3433.0)
    280280        # The  two payments belong to the same session and level.
    281281        self.assertEqual(self.student['payments'].values()[0].p_session, 2015)
     
    309309        self.browser.getControl("Create ticket").click()
    310310        self.assertTrue('ticket created' in self.browser.contents)
    311         # (5666-250)/2 + 1250 + 750 - 500 + 250
    312         self.assertEqual(self.student['payments'].values()[2].amount_auth, 4458.0)
    313         # (5666-250)/2 + 250
    314         self.assertEqual(self.student['payments'].values()[3].amount_auth, 2958.0)
     311        # (5666-200)/2 + 1250 + 750 - 400 + 200
     312        self.assertEqual(self.student['payments'].values()[2].amount_auth, 4533.0)
     313        # (5666-200)/2 + 200
     314        self.assertEqual(self.student['payments'].values()[3].amount_auth, 2933.0)
    315315        # The last two payments belong to the same session and level.
    316316        self.assertEqual(self.student['payments'].values()[2].p_session, 2016)
     
    613613        self.student['studycourse'].current_session = 2016
    614614        self.student['studycourse'].entry_mode = 'ug_ft'
    615         self.student['studycourse'].certificate.school_fee_1 = 50250.0
    616         self.app['configuration']['2016'].union_fee = 1250.0
    617         self.app['configuration']['2016'].welfare_fee = 750.0
    618         self.app['configuration']['2016'].id_card_fee = 350.0
     615        self.student['studycourse'].certificate.school_fee_1 = 50200.0
     616        self.app['configuration']['2016'].union_fee = 1200.0
     617        self.app['configuration']['2016'].welfare_fee = 700.0
     618        self.app['configuration']['2016'].id_card_fee = 300.0
    619619        self.student.nationality = u'NG'
    620620        # Login
     
    633633        self.browser.getLink(value).click()
    634634        self.assertTrue('Amount Authorized' in self.browser.contents)
    635         # 50250 + 1000 + 500 + 100 = 51850
    636         self.assertEqual(self.student['payments'][value].amount_auth, 51850.0)
     635        # 50200 + 1200 + 700 + 300 - 600 = 51800
     636        self.assertEqual(self.student['payments'][value].amount_auth, 51800.0)
    637637        self.student['payments'][value].r_company = u'interswitch'
    638638        self.browser.open(self.browser.url + '/payment_slip.pdf')
Note: See TracChangeset for help on using the changeset viewer.