Ignore:
Timestamp:
5 Dec 2014, 10:01:59 (10 years ago)
Author:
Henrik Bettermann
Message:

Maint payment checking disabled on Dec 5th, 2014.

File:
1 edited

Legend:

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

    r12049 r12148  
    104104        IWorkflowState(self.student).setState('cleared')
    105105        self.browser.open(self.payments_path + '/addop')
    106         self.browser.getControl(name="form.p_category").value = ['schoolfee']
    107         self.browser.getControl("Create ticket").click()
    108         self.assertMatches('...Book and pay for accommodation first...',
    109                            self.browser.contents)
    110 
    111         # In KwaraPoly only returning students can create school fee payment
    112         # without having paid accommodation fee
     106
     107        # Maint payment checking disabled on 5th Dec 2014
     108        #self.browser.getControl(name="form.p_category").value = ['schoolfee']
     109        #self.browser.getControl("Create ticket").click()
     110        #self.assertMatches('...Book and pay for accommodation first...',
     111        #                   self.browser.contents)
     112        ## In KwaraPoly only returning students can create school fee payment
     113        ## without having paid accommodation fee
     114
    113115        IWorkflowState(self.student).setState('returning')
    114116        configuration = createObject('waeup.SessionConfiguration')
     
    220222        self.assertEqual(pt_ft(self.student), 'ft')
    221223
    222         error, payment = utils.setPaymentDetails('schoolfee',self.student)
    223         self.assertEqual(error,
    224             'Book and pay for accommodation first before making'
    225             ' school fee payments.')
    226         # We add a fake maint. payment ticket to meet the condition
    227         maint_payment = createObject('waeup.StudentOnlinePayment')
    228         self.student['payments']['any_key'] = maint_payment
    229         maint_payment.p_category = 'hostel_maintenance'
    230         maint_payment.p_state = 'paid'
    231         maint_payment.p_session = 2004
     224        # Maint payment checking disabled on 5th Dec 2014
     225        #error, payment = utils.setPaymentDetails('schoolfee',self.student)
     226        #self.assertEqual(error,
     227        #    'Book and pay for accommodation first before making'
     228        #    ' school fee payments.')
     229        ## We add a fake maint. payment ticket to meet the condition
     230        #maint_payment = createObject('waeup.StudentOnlinePayment')
     231        #self.student['payments']['any_key'] = maint_payment
     232        #maint_payment.p_category = 'hostel_maintenance'
     233        #maint_payment.p_state = 'paid'
     234        #maint_payment.p_session = 2004
     235
    232236        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    233237        self.assertEqual(payment.p_level, 100)
Note: See TracChangeset for help on using the changeset viewer.