Ignore:
Timestamp:
17 Mar 2021, 21:56:12 (4 years ago)
Author:
Henrik Bettermann
Message:

Change FEES_VALUES and adjust all tests.

Location:
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_browser.py

    r16369 r16417  
    7575        self.assertEqual(self.student['payments'].values()[0].p_category, 'schoolfee_1')
    7676        self.assertEqual(self.student['payments'].values()[1].p_category, 'schoolfee_2')
    77         # 80200 / 2 + 250
    78         self.assertEqual(self.student['payments'].values()[0].amount_auth, 40350.0)
    79         self.assertEqual(self.student['payments'].values()[1].amount_auth, 40350.0)
     77        # 85700/ 2 + 250
     78        self.assertEqual(self.student['payments'].values()[0].amount_auth, 43100.0)
     79        self.assertEqual(self.student['payments'].values()[1].amount_auth, 43100.0)
    8080        # The  two payments belong to the same session and level.
    8181        self.assertEqual(self.student['payments'].values()[0].p_session, 2004)
     
    105105        self.assertEqual(self.student.current_level, 200)
    106106        self.assertEqual(self.student.current_session, 2005)
    107         # 73700 / 2 + 250
    108         self.assertEqual(self.student['payments'].values()[2].amount_auth, 37100.0)
    109         self.assertEqual(self.student['payments'].values()[3].amount_auth, 37100.0)
     107        # 79700 / 2 + 250
     108        self.assertEqual(self.student['payments'].values()[2].amount_auth, 40100.0)
     109        self.assertEqual(self.student['payments'].values()[3].amount_auth, 40100.0)
    110110        # The last two payments belong to the same session and level.
    111111        self.assertEqual(self.student['payments'].values()[2].p_session, 2005)
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_utils.py

    r15747 r16417  
    3131        self.assertEqual(payment.p_level, 100)
    3232        self.assertEqual(payment.p_session, 2016)
    33         self.assertEqual(payment.amount_auth, 80450.0)
     33        self.assertEqual(payment.amount_auth, 85950.0)
    3434        self.assertEqual(payment.p_item, u'CERT1')
    3535        self.assertEqual(error, None)
     
    3838        self.assertEqual(payment.p_level, 100)
    3939        self.assertEqual(payment.p_session, 2016)
    40         self.assertEqual(payment.amount_auth, 40350.0)
     40        self.assertEqual(payment.amount_auth, 43100.0)
    4141        self.assertEqual(payment.p_item, u'CERT1')
    4242        self.assertEqual(error, None)
     
    4545        self.assertEqual(payment.p_level, 100)
    4646        self.assertEqual(payment.p_session, 2016)
    47         self.assertEqual(payment.amount_auth, 40350.0)
     47        self.assertEqual(payment.amount_auth, 43100.0)
    4848        self.assertEqual(payment.p_item, u'CERT1')
    4949        self.assertEqual(error, None)
     
    5555        self.student.lga = 'delta_burutu'
    5656        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    57         self.assertEqual(payment.amount_auth, 70450.0)
     57        self.assertEqual(payment.amount_auth, 75950.0)
    5858        error, payment = utils.setPaymentDetails('clearance',self.student)
    5959        self.assertEqual(payment.amount_auth, 20300.0)
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/utils.py

    r16400 r16417  
    4343FEES_VALUES = (
    4444     ( # 100      110      200      210      300      310      400      410     500  999
    45        (43200.0, 43200.0, 42700.0, 42700.0, 37200.0, 37200.0, 0.0, 0.0, 0.0, 0.0), # nce_ft
     45       (43200.0, 43200.0, 46200.0, 46200.0, 40200.0, 40200.0, 0.0, 0.0, 0.0, 0.0), # nce_ft
    4646       (55200.0, 55200.0, 49200.0, 49200.0, 53200.0, 53200.0, 49200.0, 49200.0, 0.0, 0.0), # nce_pt
    47        (70200.0, 70200.0, 63700.0, 63700.0, 67700.0, 67700.0, 61700.0, 61700.0, 0.0, 0.0), # ug_ft
     47       (75700.0, 75700.0, 69700.0, 69700.0, 73700.0, 73700.0, 67700.0, 67700.0, 0.0, 0.0), # ug_ft
    4848       (33200.0, 33200.0, 28000.0, 28000.0, 32000.0, 32000.0, 28000.0, 28000.0, 0.0, 0.0), # nce_we_pt
    4949     ), # local
    5050     ( #
    51        (55800.0, 55800.0, 54800.0, 54800.0, 49800.0, 49800.0, 0.0, 0.0, 0.0, 0.0), # nce_ft
     51       (55800.0, 55800.0, 58700.0, 58700.0, 52700.0, 52700.0, 0.0, 0.0, 0.0, 0.0), # nce_ft
    5252       (55200.0, 55200.0, 49200.0, 49200.0, 53200.0, 53200.0, 49200.0, 49200.0, 0.0, 0.0), # nce_pt
    53        (80200.0, 80200.0, 73700.0, 73700.0, 77700.0, 77700.0, 71700.0, 71700.0, 0.0, 0.0), # ug_ft
     53       (85700.0, 85700.0, 79700.0, 79700.0, 83700.0, 83700.0, 77700.0, 77700.0, 0.0, 0.0), # ug_ft
    5454       (33200.0, 33200.0, 28000.0, 28000.0, 32000.0, 32000.0, 28000.0, 28000.0, 0.0, 0.0), # nce_we_pt
    5555     ), # non-local
Note: See TracChangeset for help on using the changeset viewer.