Ignore:
Timestamp:
18 Jan 2019, 07:42:00 (6 years ago)
Author:
Henrik Bettermann
Message:

Fix tests.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests
Files:
2 edited

Legend:

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

    r14931 r15300  
    229229        self.assertEqual(payment.p_level, 100)
    230230        self.assertEqual(payment.p_session, 2004)
    231         self.assertEqual(payment.amount_auth, 70450.0)
     231        self.assertEqual(payment.amount_auth, 70457.5)
    232232        self.assertEqual(payment.p_item, u'CERT1')
    233233        self.assertEqual(error, None)
     
    242242        self.assertEqual(payment.p_level, 200)
    243243        self.assertEqual(payment.p_session, 2005)
    244         self.assertEqual(payment.amount_auth, 35450.0)
     244        self.assertEqual(payment.amount_auth, 35457.5)
    245245        self.assertEqual(payment.p_item, u'CERT1')
    246246        self.assertEqual(error, None)
     
    249249        self.certificate.study_mode = 'ug_ft'
    250250        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    251         self.assertEqual(payment.amount_auth,  56300.0)
     251        self.assertEqual(payment.amount_auth,  56307.5)
    252252        self.assertEqual(error, None)
    253253        # UG cleared students pay 65650
    254254        IWorkflowState(self.student).setState('cleared')
    255255        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    256         self.assertEqual(payment.amount_auth, 65800.0)
     256        self.assertEqual(payment.amount_auth, 65807.5)
    257257        self.assertEqual(error, None)
    258258
     
    272272        self.assertEqual(payment.p_level, 100)
    273273        self.assertEqual(payment.p_session, 2004)
    274         self.assertEqual(payment.amount_auth, 270.0)
     274        self.assertEqual(payment.amount_auth, 277.5)
    275275        self.assertEqual(payment.p_item, u'CERT1')
    276276        self.assertEqual(error, None)
     
    285285        self.assertEqual(payment.p_level, 100)
    286286        self.assertEqual(payment.p_session, 2004)
    287         self.assertEqual(payment.amount_auth, 1026.0)
     287        self.assertEqual(payment.amount_auth, 1033.5)
    288288        self.assertEqual(payment.p_item, u'My bed coordinates')
    289289        self.assertEqual(error, None)
     
    292292        self.assertEqual(payment.p_level, 100)
    293293        self.assertEqual(payment.p_session, 2004)
    294         self.assertEqual(payment.amount_auth, 8088.0)
     294        self.assertEqual(payment.amount_auth, 8095.5)
    295295        self.assertEqual(payment.p_item, u'')
    296296        self.assertEqual(error, None)
     
    300300        self.assertEqual(payment.p_level, 100)
    301301        self.assertEqual(payment.p_session, 2004)
    302         self.assertEqual(payment.amount_auth, 697.5)  # 62.5% * 876 + 150
     302        self.assertEqual(payment.amount_auth, 705.0)  # 62.5% * 876 + 157.5
    303303        self.assertEqual(payment.p_item, u'My bed coordinates')
    304304        self.assertEqual(error, None)
     
    307307        self.assertEqual(payment.p_level, 100)
    308308        self.assertEqual(payment.p_session, 2004)
    309         self.assertEqual(payment.amount_auth, 300.0)
     309        self.assertEqual(payment.amount_auth, 307.5)
    310310        self.assertEqual(payment.p_item, u'')
    311311        self.assertEqual(error, None)
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py

    r14931 r15300  
    8484        IWorkflowState(self.student).setState('returning')
    8585        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    86         self.assertEqual(payment.amount_auth, 16124.0) # 15875 + 150 + 99
     86        self.assertEqual(payment.amount_auth, 16131.5) # 15875 + 157.5 + 99
    8787        self.student['studycourse'].previous_verdict = 'O'
    8888        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    89         self.assertEqual(payment.amount_auth, 16025.0) # 15875 + 150
     89        self.assertEqual(payment.amount_auth, 16032.5) # 15875 + 157.5
    9090        return
Note: See TracChangeset for help on using the changeset viewer.