Ignore:
Timestamp:
29 May 2015, 06:03:24 (9 years ago)
Author:
Henrik Bettermann
Message:

Temporarily disable NCE I payment.

Unfortunately, many tests are based on nce_ft level 100 students. They all failed and had to be changed.

School fee configuration in FCEOkene is too complex and error-prone. WAeUP Germany recommends to slim down and optimize administrative processes.

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

Legend:

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

    r13018 r13022  
    5050    def setUp(self):
    5151        super(InterswitchTestsStudents, self).setUp()
    52         self.certificate.study_mode = 'nce_ft'
     52        self.certificate.study_mode = 'pd_ft'
    5353        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    5454        self.browser.open(self.payments_path)
     
    6565                           self.browser.contents)
    6666        self.assertTrue(
    67             '<span>14975.0</span>' in self.browser.contents)
     67            '<span>35450.0</span>' in self.browser.contents)
    6868        self.payment_url = self.browser.url
    6969        self.payment = self.student['payments'][self.value]
     
    9595                           self.browser.contents)
    9696        self.assertTrue(
    97             '<input type="hidden" name="amount" value="1497500" />'
    98             in self.browser.contents)
    99         self.assertTrue(
    100             'item_name="School Fee" item_amt="1182500" bank_id="117" acct_num="1013780934"'
     97            '<input type="hidden" name="amount" value="3545000" />'
     98            in self.browser.contents)
     99        self.assertTrue(
     100            'item_name="School Fee" item_amt="3230000" bank_id="117" acct_num="1013780934"'
    101101            in self.browser.contents)
    102102        self.assertTrue(
     
    108108
    109109        # Third semester payment
     110        self.certificate.study_mode = 'nce_ft'
    110111        self.app['configuration']['2004'].third_semester_fee = 10000.0
    111112        self.browser.open(self.payments_path)
     
    253254        self.assertMatches('...Total Amount Authorized:...',
    254255                           self.browser.contents)
    255         self.assertEqual(self.student.current_mode, 'nce_ft')
     256        self.assertEqual(self.student.current_mode, 'pd_ft')
    256257        self.assertMatches(
    257258            '...<input type="hidden" name="amount" value="4000000" />...',
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py

    r12628 r13022  
    138138        self.browser.getControl(name="form.p_category").value = ['third_semester']
    139139        self.browser.getControl("Create ticket").click()
    140         self.assertMatches('...ticket created...',
    141                            self.browser.contents)
     140        self.assertMatches('...ticket created...', self.browser.contents)
    142141        self.browser.open(self.payments_path + '/addop')
    143142        self.browser.getControl(
     
    157156        self.assertMatches('...ticket created...',
    158157                           self.browser.contents)
     158        self.certificate.study_mode = 'pd_ft'
    159159        self.browser.open(self.payments_path + '/addop')
    160160        self.browser.getControl(name="form.p_category").value = ['schoolfee']
     
    224224
    225225        IWorkflowState(self.student).setState('cleared')
    226         self.certificate.study_mode = 'nce_ft'
    227         error, payment = utils.setPaymentDetails('schoolfee',self.student)
    228         self.assertEqual(payment.p_level, 100)
    229         self.assertEqual(payment.p_session, 2004)
    230         self.assertEqual(payment.amount_auth, 14975.0)
     226        self.certificate.study_mode = 'pd_ft'
     227        error, payment = utils.setPaymentDetails('schoolfee',self.student)
     228        self.assertEqual(payment.p_level, 100)
     229        self.assertEqual(payment.p_session, 2004)
     230        self.assertEqual(payment.amount_auth, 35450.0)
    231231        self.assertEqual(payment.p_item, u'CERT1')
    232232        self.assertEqual(error, None)
     
    241241        self.assertEqual(payment.p_level, 200)
    242242        self.assertEqual(payment.p_session, 2005)
    243         self.assertEqual(payment.amount_auth, 14025.0)
     243        self.assertEqual(payment.amount_auth, 35450.0)
    244244        self.assertEqual(payment.p_item, u'CERT1')
    245245        self.assertEqual(error, None)
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r12629 r13022  
    203203                    else:
    204204                        amount = 14825
     205                    ################################
     206                    # Payment disabled on 29/05/15 #
     207                    ################################
     208                    amount = 0.0
    205209                # NCE II
    206210                elif student.current_level in (100, 110, 120) and \
Note: See TracChangeset for help on using the changeset viewer.