Changeset 14132 for main/waeup.aaue/trunk/src/waeup/aaue/students/reports
- Timestamp:
- 27 Aug 2016, 05:39:02 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_raw_score_report.py
r14116 r14132 50 50 51 51 def test_create_pdf(self): 52 report = RawScoreReport('fac1', 'dep1', 2010, 200) 52 self.course = createObject('waeup.Course') 53 self.course.code = 'Course2' 54 self.app['faculties']['fac1']['dep1'].courses.addCourse( 55 self.course) 56 self.app['faculties']['fac1']['dep1'].certificates[ 57 'CERT1'].addCertCourse(self.course, level=100) 58 studylevel = createObject('waeup.StudentStudyLevel') 59 studylevel.level = 200 60 studylevel.level_session = 2011 61 self.student['studycourse']['200'] = studylevel 62 ticket = createObject('waeup.CourseTicket') 63 ticket.code = 'Course2' 64 ticket.credits = 30 65 ticket.score = 50 66 ticket.ca = 10 67 self.student['studycourse']['200']['Course2'] = ticket 68 report = RawScoreReport('fac1', 'dep1', 2011, 200) 53 69 result = report.create_pdf() 54 70 self.assertTrue(result.startswith('%PDF-'))
Note: See TracChangeset for help on using the changeset viewer.