Changeset 14393 for main/waeup.aaue/trunk/src
- Timestamp:
- 13 Jan 2017, 12:33:16 (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
r14389 r14393 30 30 result = get_students('fac1', 'dep1', 2010, 100) 31 31 self.assertEqual(result, 32 [(u'1234', u'TESTER, Bob', 30, 30, '5.00 ', 'nil', 0, 30, 30, '5.000', 'Proceed')])32 [(u'1234', u'TESTER, Bob', 30, 30, '5.000', 'nil', '', 30, 30, '5.000', 'Proceed')]) 33 33 return 34 34 -
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_session_results_presentation.py
r14389 r14393 31 31 result = get_students('fac1', 'dep1', 2010, 100) 32 32 self.assertEqual(result, 33 [[ ], [], [], [], [], [], [(u'E1000000', u'1234', u'TESTER, Bob')]])33 [[(u'E1000000', u'1234', u'TESTER, Bob')], [], [], [], [], [], []]) 34 34 self.student['studycourse']['100']['Course1'].score = 60 35 35 self.student['studycourse']['100']['Course1'].ca = 10 -
main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py
r14388 r14393 92 92 credits_failed = 0 93 93 credits_passed = 0 94 no_courses_not_taken = 094 courses_not_taken = '' 95 95 for ticket in self.values(): 96 96 if None not in (ticket.score, ticket.ca): … … 106 106 credits_passed += ticket.credits 107 107 else: 108 no_courses_not_taken += 1108 courses_not_taken += '%s ' % ticket.code 109 109 if not len(courses_failed): 110 110 courses_failed = 'nil' 111 111 return (passed, failed, credits_passed, 112 112 credits_failed, courses_failed, 113 no_courses_not_taken)113 courses_not_taken) 114 114 115 115 @property
Note: See TracChangeset for help on using the changeset viewer.