Ignore:
Timestamp:
4 Jun 2015, 12:11:22 (10 years ago)
Author:
Henrik Bettermann
Message:

Let's disable NCE 1 payments online (undo r13022).

File:
1 edited

Legend:

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

    r13022 r13030  
    387387          'Download admission letter' in self.browser.contents)
    388388        return
     389
     390    def test_payment_disabled(self):
     391        self.certificate.study_mode = 'nce_ft'
     392        IWorkflowState(self.student).setState('cleared')
     393        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     394        self.browser.open(self.payments_path)
     395        self.browser.getLink("Add current session payment ticket").click()
     396        self.browser.getControl(name="form.p_category").value = ['schoolfee']
     397        self.browser.getControl("Create ticket").click()
     398        self.assertMatches('...ticket created...',
     399                           self.browser.contents)
     400        self.app['configuration']['2004'].payment_disabled = ['sf_nce1']
     401        self.browser.getLink("Add current session payment ticket").click()
     402        self.browser.getControl(name="form.p_category").value = ['schoolfee']
     403        self.browser.getControl("Create ticket").click()
     404        self.assertMatches('...Payment temporarily disabled...',
     405                           self.browser.contents)
     406        self.certificate.study_mode = 'ug_ft'
     407        self.browser.open(self.payments_path)
     408        self.browser.getLink("Add current session payment ticket").click()
     409        self.browser.getControl(name="form.p_category").value = ['schoolfee']
     410        self.browser.getControl("Create ticket").click()
     411        self.assertMatches('...ticket created...',
     412                           self.browser.contents)
     413        return
Note: See TracChangeset for help on using the changeset viewer.