Ignore:
Timestamp:
1 Nov 2015, 14:11:52 (9 years ago)
Author:
Henrik Bettermann
Message:

Configure new payment categories. School fee amounts are now set via certificates not session configuration objects.

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

Legend:

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

    r13359 r13374  
    124124        self.assertMatches('...Amount could not be determined...',
    125125                           self.browser.contents)
    126         self.app['configuration']['2004'].school_fee_1 = 6666.0
    127126        #self.browser.getControl(name="form.p_category").value = ['schoolfee']
    128127        # Accepotance fee must be paid first
     
    136135        cpt_value = ctrl.options[0]
    137136        # School fee payment ticket can be added ...
     137        self.student['studycourse'].certificate.school_fee_1 = 6666.0
     138        self.student.nationality = u'NG'
    138139        self.browser.open(self.payments_path + '/addop')
    139140        self.browser.getControl(name="form.p_category").value = ['schoolfee']
     
    235236
    236237    def test_manage_payments_bypass_ac_creation(self):
    237         self.app['configuration']['2004'].school_fee_1 = 6666.0
     238        self.student['studycourse'].certificate.school_fee_1 = 6666.0
     239        self.student.nationality = u'NG'
    238240        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    239241        self.browser.open(self.payments_path)
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py

    r13359 r13374  
    5252        self.app['configuration']['2004'].clearance_fee = 1234.0
    5353        self.app['configuration']['2004'].clearance_fee_fp = 3456.0
    54         self.app['configuration']['2004'].school_fee_1 = 6666.0
     54        self.student['studycourse'].certificate.school_fee_1 = 6666.0
     55        self.student['studycourse'].certificate.school_fee_2 = 7777.0
     56        self.student.nationality = u'NG'
    5557        utils = getUtility(IStudentsUtils)
    5658
     
    5860        configuration.academic_session = 2005
    5961        self.app['configuration'].addSessionConfiguration(configuration)
    60         self.app['configuration']['2005'].school_fee_2 = 7777.0
    6162
    6263        error, payment = utils.setPaymentDetails('schoolfee',self.student)
Note: See TracChangeset for help on using the changeset viewer.