- Timestamp:
- 15 Mar 2017, 12:07:24 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students/reports
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/level_report.py
r14626 r14629 77 77 """ 78 78 """ 79 if level_obj.remark not in ( 79 final_level = max(level_obj.student['studycourse'].keys()) 80 final_level_obj = level_obj.student['studycourse'][final_level] 81 if final_level_obj.remark not in ( 80 82 'Pass', '3s_rd_s', '2s_2_s', '2s_1_s', '1s_st_s'): 81 83 return True … … 84 86 class GradLevelReportGenerator(LevelReportGenerator): 85 87 86 title = ' Graduating Students Summary ofResults'88 title = 'Summary of Graduating Students Results' 87 89 grok.name('grad_level_report') 88 90 -
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_level_report.py
r14623 r14629 10 10 11 11 from waeup.aaue.students.reports.level_report import ( 12 CustomLevelReport, GradLevelReport )12 CustomLevelReport, GradLevelReport, IGradLevelReport) 13 13 14 14 from waeup.aaue.testing import FunctionalLayer … … 53 53 def test_iface(self): 54 54 # ensure we fullfill interface contracts 55 obj = CustomLevelReport('fac1', 'dep1', 'CERT1', 2010, 100)56 verifyClass(I LevelReport, GradLevelReport)57 verifyObject(I LevelReport, obj)55 obj = GradLevelReport('fac1', 'dep1', 'CERT1', 2010, 100) 56 verifyClass(IGradLevelReport, GradLevelReport) 57 verifyObject(IGradLevelReport, obj) 58 58 return 59 59
Note: See TracChangeset for help on using the changeset viewer.