- Timestamp:
- 13 Mar 2017, 17:17:34 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_level_report.py
r14608 r14623 59 59 60 60 def test_get_students(self): 61 62 61 self.student['studycourse']['100']['Course1'].ca = 0 63 62 lr = GradLevelReport('fac1', 'dep1', 'CERT1', 2010, 100) … … 65 64 result = lr._get_students('fac1', 'dep1', 'CERT1', 2010, 100) 66 65 self.assertEqual(result, []) 67 # if end level is 100, the student seems graduati ing and66 # if end level is 100, the student seems graduating and 68 67 # we can get a table with one student 69 68 self.certificate.end_level = 100 69 self.student['studycourse']['100']['Course1'].credits = 91 70 70 result = lr._get_students('fac1', 'dep1', 'CERT1', 2010, 100) 71 71 self.assertEqual(result, 72 [(u'1234', u'TESTER, Bob', 30, 30, '5.000',73 'Nil', 'Nil', 30, 30, '5.00', '1s_st_s')])72 [(u'1234', u'TESTER, Bob', 91, 91, '5.000', 73 'Nil', 'Nil', 91, 91, '5.00', '1s_st_s')]) 74 74 return 75 75 76 76 def test_create_pdf(self): 77 77 self.student['studycourse']['100']['Course1'].ca = 0 78 self.student['studycourse']['100']['Course1'].credits = 91 79 self.certificate.end_level = 100 78 80 self.app['faculties']['fac1'].officer_1 = 'Rosa Moonshine - Dean of Faculty' 79 81 self.app['faculties']['fac1']['dep1'].officer_1 = 'Amalia Sunshine - Head of Department'
Note: See TracChangeset for help on using the changeset viewer.