Changeset 14370 for main/waeup.aaue/trunk/src
- Timestamp:
- 5 Jan 2017, 08:45:08 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_level_report.py
r14270 r14370 30 30 result = get_students('fac1', 'dep1', 2010, 100) 31 31 self.assertEqual(result, 32 [(u'1234', u'TESTER, Bob', 30, 30, 5.0, '', 30, 30, 5.0, 'Proceed')])32 [(u'1234', u'TESTER, Bob', 30, 30, 0, 5.0, '', 30, 30, 5.0, 'Proceed')]) 33 33 return 34 34 -
main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py
r14362 r14370 95 95 credits_failed = 0 96 96 credits_passed = 0 97 no_courses_not_taken = 0 97 98 for ticket in self.values(): 98 99 if None not in (ticket.score, ticket.ca): … … 107 108 passed += 1 108 109 credits_passed += ticket.credits 109 return passed, failed, credits_passed, credits_failed, courses_failed 110 else: 111 no_courses_not_taken += 1 112 return (passed, failed, credits_passed, 113 credits_failed, courses_failed, 114 no_courses_not_taken) 110 115 111 116 @property
Note: See TracChangeset for help on using the changeset viewer.