Changeset 16744


Ignore:
Timestamp:
15 Dec 2021, 10:59:52 (3 years ago)
Author:
Henrik Bettermann
Message:

Next try.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/applicants
Files:
2 edited

Legend:

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

    r16743 r16744  
    583583            ),
    584584        )
    585     jamb_score = schema.Int(
     585    jamb_score = schema.Float(
    586586        title = _(u'Total JAMB Score'),
    587587        required = False,
     
    607607        required = False,
    608608        )
    609     screening_score = schema.Int(
     609    screening_score = schema.Float(
    610610        title = _(u'Screening Score (%)'),
    611611        required = False,
    612612        )
    613     aggregate = schema.Int(
     613    aggregate = schema.Float(
    614614        title = _(u'Aggregate Score (%)'),
    615615        description = _(u'(average of relative JAMB and PUTME scores)'),
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py

    r16504 r16744  
    120120    def test_pay_admission_checking_fee(self):
    121121        IWorkflowState(self.applicant).setState('admitted')
    122         self.applicant.screening_score = 55
     122        self.applicant.screening_score = 55.0
    123123        self.applicant.course_admitted = self.certificate
    124124        self.login()
     
    128128            'Add admission checking payment ticket' in self.browser.contents)
    129129        self.assertTrue('<a href="http://localhost/app/faculties/fac1/dep1/certificates/CERT1">CERT1 - Unnamed Certificate</a>' in self.browser.contents)
    130         self.assertTrue('<span>55</span>' in self.browser.contents)
     130        self.assertTrue('<span>55.0</span>' in self.browser.contents)
    131131        configuration = CustomSessionConfiguration()
    132132        configuration.academic_session = datetime.datetime.now().year - 2
     
    138138            'Add admission checking payment ticket' in self.browser.contents)
    139139        self.assertTrue('<a href="http://localhost/app/faculties/fac1/dep1/certificates/CERT1">CERT1 - Unnamed Certificate</a>' in self.browser.contents)
    140         self.assertTrue('<span>55</span>' in self.browser.contents)
     140        self.assertTrue('<span>55.0</span>' in self.browser.contents)
    141141        configuration.admchecking_fee = 22.0
    142142        # Admission checking payment button is now visible, but screening results
     
    146146            'Add admission checking payment ticket' in self.browser.contents)
    147147        self.assertFalse('<a href="http://localhost/app/faculties/fac1/dep1/certificates/CERT1">CERT1 - Unnamed Certificate</a>' in self.browser.contents)
    148         self.assertFalse('<span>55</span>' in self.browser.contents)
     148        self.assertFalse('<span>55.0</span>' in self.browser.contents)
    149149        # Application slip can't be downloaded
    150150        self.assertFalse('Download application slip' in self.browser.contents)
     
    163163            'Add admission checking payment ticket' in self.browser.contents)
    164164        self.assertTrue('<a href="http://localhost/app/faculties/fac1/dep1/certificates/CERT1">CERT1 - Unnamed Certificate</a>' in self.browser.contents)
    165         self.assertTrue('<span>55</span>' in self.browser.contents)
     165        self.assertTrue('<span>55.0</span>' in self.browser.contents)
    166166        # Application slip can be downloaded again.
    167167        self.browser.getLink("Download application slip").click()
Note: See TracChangeset for help on using the changeset viewer.