Ignore:
Timestamp:
8 Jul 2020, 08:28:52 (4 years ago)
Author:
Henrik Bettermann
Message:

Configure transcript application.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py

    r16078 r16151  
    2727from zope.securitypolicy.interfaces import IPrincipalRoleManager
    2828from zope.component import createObject, getUtility
    29 from waeup.kofa.configuration import SessionConfiguration
    3029from waeup.kofa.interfaces import IUserAccount
    3130from waeup.kofa.browser.tests.test_pdf import samples_dir
     
    296295
    297296    def test_transcript_payment(self):
    298         configuration = SessionConfiguration()
     297        configuration = CustomSessionConfiguration()
    299298        configuration.academic_session = session_1
    300299        self.app['configuration'].addSessionConfiguration(configuration)
     
    302301        applicantscontainer = ApplicantsContainer()
    303302        applicantscontainer.year = session_1
    304         applicantscontainer.application_fee = 200.0
     303        applicantscontainer.application_fee = 1.0 # Must be set but is not used.
    305304        applicantscontainer.code = u'trans1234'
    306         applicantscontainer.prefix = 'trans'
     305        applicantscontainer.prefix = 'transfull'
    307306        applicantscontainer.title = u'This is a trans container'
    308307        applicantscontainer.application_category = 'no'
     
    332331        self.browser.getControl(name="form.date_of_birth").value = '09/09/1988'
    333332        self.browser.getControl(name="form.email").value = 'xx@yy.zz'
    334         self.browser.getControl(name="form.nationality").value = ['NG']
    335333        self.browser.getControl(name="form.firstname").value = 'Angela'
    336334        self.browser.getControl(name="form.lastname").value = 'Merkel'
    337335        self.browser.getControl(name="form.sex").value = ['f']
    338         self.browser.getControl(name="form.no_copies").value = ['3']
     336        self.browser.getControl(name="form.no_copies").value = ['2']
    339337        self.browser.getControl(name="form.course_studied").value = ['CERT1']
    340338        self.browser.getControl(name="form.matric_number").value = '234'
    341         self.browser.getControl(name="form.place_of_birth").value = 'Bochum'
    342339        self.browser.getControl(name="form.dispatch_address").value = 'Kuensche'
    343         self.browser.getControl(name="form.perm_address").value = 'Kuensche'
    344340        self.browser.getControl(name="form.entry_mode").value = ['ug_ft']
    345341        self.browser.getControl(name="form.entry_session").value = ['2014']
     
    347343        self.browser.getControl(name="form.phone.country").value = ['+234']
    348344        self.browser.getControl(name="form.phone.ext").value = '5678'
     345        self.browser.getControl(name="form.charge").value = ['nigeria']
    349346        self.browser.getControl("Save").click()
    350347        self.browser.getControl("Add online payment ticket").click()
    351348        self.assertTrue('Payment ticket created' in self.browser.contents)
    352         self.assertTrue('<span>200.0</span>' in self.browser.contents)
    353         self.assertEqual(applicant.values()[0].amount_auth, 200.0)
     349        self.assertTrue('<span>40000.0</span>' in self.browser.contents)
     350        self.assertEqual(applicant.values()[0].amount_auth, 40000.0)
    354351        return
Note: See TracChangeset for help on using the changeset viewer.