Changeset 14246 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 1 Nov 2016, 07:22:54 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r14244 r14246 437 437 print "Sample PDF transcript.pdf written to %s" % path 438 438 439 def test_payment_disabled(self): 440 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 441 self.browser.open(self.payments_path) 442 IWorkflowState(self.student).setState('cleared') 443 self.browser.getLink("Add current session payment ticket").click() 444 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 445 self.browser.getControl("Create ticket").click() 446 self.assertMatches('...ticket created...', self.browser.contents) 447 self.app['configuration']['2004'].payment_disabled = ['sf_all'] 448 self.browser.getLink("Add current session payment ticket").click() 449 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 450 self.browser.getControl("Create ticket").click() 451 self.assertMatches('...This category of payments has been disabled...', 452 self.browser.contents) 453 454 self.app['configuration']['2004'].payment_disabled = ['sf_pt'] 455 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 456 self.browser.getControl("Create ticket").click() 457 self.assertMatches('...ticket created...', self.browser.contents) 458 self.certificate.study_mode = 'ug_pt' 459 self.browser.getLink("Add current session payment ticket").click() 460 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 461 self.browser.getControl("Create ticket").click() 462 self.assertMatches('...This category of payments has been disabled...', 463 self.browser.contents) 464 465 self.app['configuration']['2004'].payment_disabled = ['sf_pg'] 466 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 467 self.browser.getControl("Create ticket").click() 468 self.assertMatches('...ticket created...', self.browser.contents) 469 self.certificate.study_mode = 'special_pg_ft' 470 self.browser.getLink("Add current session payment ticket").click() 471 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 472 self.browser.getControl("Create ticket").click() 473 self.assertMatches('...This category of payments has been disabled...', 474 self.browser.contents) 475 return 476 439 477 class StudentUITests(StudentsFullSetup): 440 478 """Tests for customized student class views and pages
Note: See TracChangeset for help on using the changeset viewer.