Changeset 14082 for main/waeup.aaue/trunk/src/waeup/aaue/students
- Timestamp:
- 16 Aug 2016, 11:14:45 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_level_report.py
r13965 r14082 25 25 def test_get_students(self): 26 26 # we can get a table with one student 27 self.student['studycourse']['100']['Course1'].ca = 0 27 28 result = get_students('fac1', 'dep1', 2010, 100) 28 29 self.assertEqual(result, 29 [(u'1234', u'TESTER, Bob', 30, 30, 5.0, '', 30, 30, 5.0 )])30 [(u'1234', u'TESTER, Bob', 30, 30, 5.0, '', 30, 30, 5.0, 'Proceed')]) 30 31 return 31 32 32 33 def test_create_pdf(self): 34 self.student['studycourse']['100']['Course1'].ca = 0 33 35 report = LevelReport('fac1', 'dep1', 2010, 100) 34 36 result = report.create_pdf() -
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_raw_score_report.py
r14076 r14082 42 42 def test_get_students(self): 43 43 # we can get a table with one student 44 self.student['studycourse']['100']['Course1'].ca = 0 44 45 course_codes = get_courses('fac1', 'dep1', 2010, 100) 45 46 result = get_students('fac1', 'dep1', 2010, 100, course_codes) -
main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py
r14075 r14082 116 116 return False 117 117 118 # only AAUE 119 @property 120 def remark(self): 121 if self.cumulative_params[0] < 1.5: 122 return 'Probation' 123 if self.cumulative_params[0] < 5.1: 124 return 'Proceed' 125 return 'N/A' 126 127 # only AAUE 128 @property 129 def final_remark(self): 130 if self.cumulative_params[0] < 1.5: 131 return 'Fail' 132 if self.cumulative_params[0] < 2.4: 133 return 'Third Class (Honours)' 134 if self.cumulative_params[0] < 3.5: 135 return 'Second Class (Honours) Lower Division' 136 if self.cumulative_params[0] < 4.5: 137 return 'Second Class (Honours) Upper Division' 138 if self.cumulative_params[0] < 5.1: 139 return 'First Class Honours' 140 return 'N/A' 141 118 142 def addCourseTicket(self, ticket, course): 119 143 """Add a course ticket object.
Note: See TracChangeset for help on using the changeset viewer.