Changeset 16744 for main/waeup.uniben/trunk
- Timestamp:
- 15 Dec 2021, 10:59:52 (3 years ago)
- 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 583 583 ), 584 584 ) 585 jamb_score = schema. Int(585 jamb_score = schema.Float( 586 586 title = _(u'Total JAMB Score'), 587 587 required = False, … … 607 607 required = False, 608 608 ) 609 screening_score = schema. Int(609 screening_score = schema.Float( 610 610 title = _(u'Screening Score (%)'), 611 611 required = False, 612 612 ) 613 aggregate = schema. Int(613 aggregate = schema.Float( 614 614 title = _(u'Aggregate Score (%)'), 615 615 description = _(u'(average of relative JAMB and PUTME scores)'), -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py
r16504 r16744 120 120 def test_pay_admission_checking_fee(self): 121 121 IWorkflowState(self.applicant).setState('admitted') 122 self.applicant.screening_score = 55 122 self.applicant.screening_score = 55.0 123 123 self.applicant.course_admitted = self.certificate 124 124 self.login() … … 128 128 'Add admission checking payment ticket' in self.browser.contents) 129 129 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) 131 131 configuration = CustomSessionConfiguration() 132 132 configuration.academic_session = datetime.datetime.now().year - 2 … … 138 138 'Add admission checking payment ticket' in self.browser.contents) 139 139 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) 141 141 configuration.admchecking_fee = 22.0 142 142 # Admission checking payment button is now visible, but screening results … … 146 146 'Add admission checking payment ticket' in self.browser.contents) 147 147 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) 149 149 # Application slip can't be downloaded 150 150 self.assertFalse('Download application slip' in self.browser.contents) … … 163 163 'Add admission checking payment ticket' in self.browser.contents) 164 164 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) 166 166 # Application slip can be downloaded again. 167 167 self.browser.getLink("Download application slip").click()
Note: See TracChangeset for help on using the changeset viewer.