Ignore:
Timestamp:
9 Nov 2015, 14:13:28 (9 years ago)
Author:
Henrik Bettermann
Message:

Little cause but big effect: these tests had to adjusted for the changes in the previous revision.

File:
1 edited

Legend:

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

    r13418 r13421  
    116116        self.browser.open(self.payments_path)
    117117        self.browser.getLink("Add current session payment ticket").click()
    118         self.browser.getControl(name="form.p_category").value = ['schoolfee']
     118        self.browser.getControl(name="form.p_category").value = ['schoolfee_incl']
    119119        self.browser.getControl("Create ticket").click()
    120120        self.assertMatches('...Wrong state...',
     
    131131        #                   self.browser.contents)
    132132        self.app['configuration']['2004'].clearance_fee = 666.0
    133         self.browser.getControl(name="form.p_category").value = ['clearance']
     133        self.browser.getControl(name="form.p_category").value = ['clearance_incl']
    134134        self.browser.getControl("Create ticket").click()
    135135        ctrl = self.browser.getControl(name='val_id')
     
    139139        self.student.nationality = u'NG'
    140140        self.browser.open(self.payments_path + '/addop')
    141         self.browser.getControl(name="form.p_category").value = ['schoolfee']
     141        self.browser.getControl(name="form.p_category").value = ['schoolfee_incl']
    142142        self.browser.getControl("Create ticket").click()
    143143        self.assertMatches('...ticket created...',
     
    169169        # ... no further school fee ticket can be added.
    170170        self.browser.open(self.payments_path + '/addop')
    171         self.browser.getControl(name="form.p_category").value = ['schoolfee']
     171        self.browser.getControl(name="form.p_category").value = ['schoolfee_incl']
    172172        self.browser.getControl("Create ticket").click()
    173173        self.assertMatches('...Wrong state...',
     
    243243        IWorkflowState(self.student).setState('cleared')
    244244        self.browser.getLink("Add current session payment ticket").click()
    245         self.browser.getControl(name="form.p_category").value = ['schoolfee']
     245        self.browser.getControl(name="form.p_category").value = ['schoolfee_incl']
    246246        self.browser.getControl("Create ticket").click()
    247247        ctrl = self.browser.getControl(name='val_id')
     
    265265        self.assertTrue(
    266266            'zope.mgr - students.browser.OnlinePaymentApproveView '
    267             '- E1000000 - schoolfee payment approved'
     267            '- E1000000 - schoolfee_incl payment approved'
    268268            in logcontent)
    269269        # ... and in payments.log
     
    272272        logcontent = open(logfile).read()
    273273        self.assertTrue(
    274             '"zope.mgr",E1000000,%s,schoolfee,6666.0,AP,,,,,,\n' % value
     274            '"zope.mgr",E1000000,%s,schoolfee_incl,6666.0,AP,,,,,,\n' % value
    275275            in logcontent)
    276276        # Student is in state school fee paid, no activation
Note: See TracChangeset for help on using the changeset viewer.