Ignore:
Timestamp:
10 Jan 2016, 09:13:17 (9 years ago)
Author:
Henrik Bettermann
Message:

Configure transfer payments and let students enter their desired
study course. Save entered text in p_item attribute.

File:
1 edited

Legend:

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

    r13492 r13574  
    196196        configuration.booking_fee = 123.4
    197197        configuration.maint_fee = 987.0
     198        configuration.transfer_fee = 456.0
    198199        configuration.late_registration_fee = 345.0
    199200        self.app['configuration'].addSessionConfiguration(configuration)
     
    10621063        self.assertEqual(ac.cost, 4567.0)
    10631064        return
     1065
     1066    def test_add_transfer_payment(self):
     1067        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     1068        self.browser.open(self.payments_path)
     1069        self.browser.getLink("Add current session payment ticket").click()
     1070        self.browser.getControl(name="form.p_category").value = ['transfer']
     1071        self.browser.getControl(name="new_programme").value = 'my new study course'
     1072        self.browser.getControl("Create ticket").click()
     1073        self.assertMatches('...ticket created...',
     1074                           self.browser.contents)
     1075        ctrl = self.browser.getControl(name='val_id')
     1076        value = ctrl.options[0]
     1077        self.browser.getLink(value).click()
     1078        self.assertMatches('...my new study course...',
     1079                           self.browser.contents)
     1080        self.assertEqual(self.student['payments'][value].p_item, u'my new study course')
    10641081
    10651082    def test_manage_payments_bypass_ac_creation(self):
Note: See TracChangeset for help on using the changeset viewer.