Changeset 16655


Ignore:
Timestamp:
30 Sep 2021, 05:31:28 (3 years ago)
Author:
Henrik Bettermann
Message:

Remove course1 and 2 also from manage form page.

Location:
main/kofacustom.edocons/trunk/src/kofacustom/edocons
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.edocons/trunk/src/kofacustom/edocons/applicants/browser.py

    r16643 r16655  
    7575    'special_application',
    7676    'jamb_subjects_list',
    77     'programme_type')
     77    'programme_type',
     78    'course1', 'course2') # these 2 have been added
    7879UG_OMIT_EDIT_FIELDS = UG_OMIT_MANAGE_FIELDS + OMIT_DISPLAY_FIELDS + (
    7980    'student_id',
  • main/kofacustom.edocons/trunk/src/kofacustom/edocons/applicants/tests/test_browser.py

    r16639 r16655  
    8080        self.browser.open(self.manage_path)
    8181        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    82         self.fill_correct_values()
     82        self.browser.getControl(name="form.firstname").value = 'John'
     83        self.browser.getControl(name="form.middlename").value = 'Anthony'
     84        self.browser.getControl(name="form.lastname").value = 'Tester'
     85        #self.browser.getControl(name="form.course1").value = ['CERT1']
     86        self.browser.getControl(name="form.date_of_birth").value = '09/09/1988'
     87        self.browser.getControl(name="form.sex").value = ['m']
     88        self.browser.getControl(name="form.email").value = 'xx@yy.zz'
    8389        self.browser.getControl("Save").click()
    8490        IWorkflowState(self.applicant).setState('submitted')
  • main/kofacustom.edocons/trunk/src/kofacustom/edocons/interswitch/tests.py

    r16642 r16655  
    210210        self.browser.open(self.manage_path)
    211211        #IWorkflowState(self.student).setState('started')
    212         super(InterswitchTestsApplicants, self).fill_correct_values()
     212        self.browser.getControl(name="form.firstname").value = 'John'
     213        self.browser.getControl(name="form.middlename").value = 'Anthony'
     214        self.browser.getControl(name="form.lastname").value = 'Tester'
     215        #self.browser.getControl(name="form.course1").value = ['CERT1']
     216        self.browser.getControl(name="form.date_of_birth").value = '09/09/1988'
     217        self.browser.getControl(name="form.sex").value = ['m']
     218        self.browser.getControl(name="form.email").value = 'xx@yy.zz'
    213219        self.applicantscontainer.application_fee = 1000.0
    214220        self.browser.getControl(name="form.nationality").value = ['NG']
Note: See TracChangeset for help on using the changeset viewer.