Ignore:
Timestamp:
22 Jul 2023, 06:10:21 (20 months ago)
Author:
Henrik Bettermann
Message:

Update school fees.

File:
1 edited

Legend:

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

    r17494 r17503  
    233233        self.app['configuration'].addSessionConfiguration(configuration_1)
    234234        self.student['studycourse'].certificate.study_mode = 'ug_pt'
    235         #self.student['studycourse'].certificate.school_fee_2 = 6666.0
    236         #self.app['configuration']['2015'].union_fee = 1250.0
    237         #self.app['configuration']['2015'].welfare_fee = 750.0
    238235        self.student.nationality = u'NG'
    239236        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     
    282279        self.assertEqual(self.student['payments'].values()[0].p_category, 'schoolfee_1')
    283280        self.assertEqual(self.student['payments'].values()[1].p_category, 'schoolfee_2')
    284         self.assertEqual(self.student['payments'].values()[0].amount_auth, 147500.0)
     281        self.assertEqual(self.student['payments'].values()[0].amount_auth, 148500.0)
    285282        self.assertEqual(self.student['payments'].values()[1].amount_auth, 92000.0)
    286283        # The  two payments belong to the same session and level.
     
    294291        configuration_2.academic_session = 2016
    295292        self.app['configuration'].addSessionConfiguration(configuration_2)
    296         #self.student['studycourse'].certificate.school_fee_2 = 5666.0
    297         #self.app['configuration']['2016'].union_fee = 1250.0
    298         #self.app['configuration']['2016'].welfare_fee = 750.0
    299293        self.student.father_name = u'Albert'
    300294        IWorkflowState(self.student).setState('returning')
     
    315309        self.browser.getControl("Create ticket").click()
    316310        self.assertTrue('ticket created' in self.browser.contents)
    317         self.assertEqual(self.student['payments'].values()[2].amount_auth, 147500.0)
     311        self.assertEqual(self.student['payments'].values()[2].amount_auth, 148500.0)
    318312        self.assertEqual(self.student['payments'].values()[3].amount_auth, 92000.0)
    319313        # The last two payments belong to the same session and level.
     
    361355        logcontent = open(logfile).read()
    362356        self.assertTrue(
    363             '"zope.mgr",E1000000,%s,schoolfee_incl,239500.0,AP,,,,,,\n' % value
     357            '"zope.mgr",E1000000,%s,schoolfee_incl,240500.0,AP,,,,,,\n' % value
    364358            in logcontent)
    365359        # Student is in state school fee paid, no activation
     
    646640        self.student['studycourse'].entry_mode = 'ug_ft'
    647641        #self.student['studycourse'].certificate.school_fee_2 = 50200.0
    648         self.app['configuration']['2018'].union_fee = 1200.0
    649         self.app['configuration']['2018'].welfare_fee = 700.0
    650         #self.app['configuration']['2017'].id_card_fee = 300.0
    651         self.app['configuration']['2018'].sports_fee = 300.0
    652         self.app['configuration']['2018'].library_fee = 300.0
    653642        self.student.nationality = u'NG'
    654643        # Login
     
    668657        self.browser.getLink(value).click()
    669658        self.assertTrue('Amount Authorized' in self.browser.contents)
    670         self.assertEqual(self.student['payments'][value].amount_auth, 239500.0)
     659        self.assertEqual(self.student['payments'][value].amount_auth, 240500.0)
    671660        self.student['payments'][value].r_company = u'interswitch'
    672661        self.browser.getLink("Download").click()
     
    700689        self.assertTrue('Amount Authorized' in self.browser.contents)
    701690        # It's 1000 less
    702         self.assertEqual(self.student['payments'][value].amount_auth, 238500.0)
     691        self.assertEqual(self.student['payments'][value].amount_auth, 240500.0)
    703692        return
    704693
Note: See TracChangeset for help on using the changeset viewer.