Changeset 15594


Ignore:
Timestamp:
19 Sep 2019, 13:30:53 (5 years ago)
Author:
Henrik Bettermann
Message:

Update tests. Remove GATEWAY_AMT again. See ticket #262.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py

    r15111 r15594  
    6969
    7070    def getTitle(self, value):
     71        if not SCHOOLS.get(value, None):
     72            return u"none-existent"
    7173        return u"%s: %s -- %s" % (
    7274            SCHOOLS[value][0],
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py

    r15507 r15594  
    229229        self.assertEqual(payment.p_level, 100)
    230230        self.assertEqual(payment.p_session, 2004)
    231         self.assertEqual(payment.amount_auth, 70457.5)
     231        self.assertEqual(payment.amount_auth, 70000)
    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, 35457.5)
     244        self.assertEqual(payment.amount_auth, 35300)
    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,  56307.5)
     251        self.assertEqual(payment.amount_auth,  56150)
    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, 65807.5)
     256        self.assertEqual(payment.amount_auth, 65650)
    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, 277.5)
     274        self.assertEqual(payment.amount_auth, 120)
    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, 1033.5)
     287        self.assertEqual(payment.amount_auth, 876)
    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, 8095.5)
     294        self.assertEqual(payment.amount_auth, 7938)
    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, 705.0)  # 62.5% * 876 + 157.5
     302        self.assertEqual(payment.amount_auth, 547.5)  # 62.5% * 876
    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, 307.5)
     309        self.assertEqual(payment.amount_auth, 150)
    310310        self.assertEqual(payment.p_item, u'')
    311311        self.assertEqual(error, None)
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py

    r15300 r15594  
    8484        IWorkflowState(self.student).setState('returning')
    8585        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    86         self.assertEqual(payment.amount_auth, 16131.5) # 15875 + 157.5 + 99
     86        self.assertEqual(payment.amount_auth, 15974) # 15875 + 99
    8787        self.student['studycourse'].previous_verdict = 'O'
    8888        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    89         self.assertEqual(payment.amount_auth, 16032.5) # 15875 + 157.5
     89        self.assertEqual(payment.amount_auth, 15875)
    9090        return
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r15523 r15594  
    3838        'NFRE','NARB','NHAU','NIGB','NYOR','NSOS')
    3939
    40 GATEWAY_AMT = 157.50
     40GATEWAY_AMT = 0.0
    4141
    4242class CustomStudentsUtils(NigeriaStudentsUtils):
Note: See TracChangeset for help on using the changeset viewer.