Changeset 15455 for main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests
- Timestamp:
- 15 Jun 2019, 12:30:51 (6 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_applicantcopier.py
r14250 r15455 24 24 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 25 25 from zope.event import notify 26 from zope.component import getUtility 26 from zope.component import getUtility, createObject 27 27 from zope.i18n import translate 28 28 from waeup.kofa.interfaces import IExtFileStore, IFileStoreNameChooser … … 38 38 def setUp(self): 39 39 super(ApplicantCopierFunctionalTests, self).setUp() 40 certificate = createObject('waeup.Certificate') 41 certificate.code = 'CERT2' 42 certificate.title = 'New Certificate' 43 certificate.application_category = 'basic' 44 self.app['faculties']['fac1']['dep1'].certificates.addCertificate( 45 certificate) 40 46 return 41 47 … … 46 52 self.fill_correct_values() 47 53 self.browser.getControl("Save").click() 54 self.browser.getControl(name="form.course2").value = ['CERT2'] 48 55 self.browser.getControl(name="form.nationality").value = ['NG'] 49 56 self.browser.getControl(name="form.lga").value = ['abia_aba_north'] -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py
r15266 r15455 56 56 57 57 def test_payment(self): 58 certificate = createObject('waeup.Certificate') 59 certificate.code = 'CERT2' 60 certificate.title = 'New Certificate' 61 certificate.application_category = 'basic' 62 self.app['faculties']['fac1']['dep1'].certificates.addCertificate( 63 certificate) 58 64 configuration = SessionConfiguration() 59 65 configuration.academic_session = session_1 … … 62 68 self.login() 63 69 self.browser.open(self.edit_path) 70 self.browser.getControl(name="form.course2").value = ['CERT2'] 64 71 self.browser.getControl(name="form.date_of_birth").value = '09/09/1988' 65 72 self.browser.getControl(name="form.email").value = 'xx@yy.zz'
Note: See TracChangeset for help on using the changeset viewer.