Changeset 10586 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 5 Sep 2013, 10:15:59 (11 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r10582 r10586 116 116 weighted_credits += ticket.credits * ticket.weight 117 117 if credits_counted: 118 level_gpa = round(weighted_credits/credits_counted, 2)118 level_gpa = round(weighted_credits/credits_counted, 3) 119 119 return level_gpa, credits_counted, weighted_credits 120 120 … … 129 129 weighted_credits += ticket.credits * ticket.weight 130 130 if credits_counted: 131 level_gpa = round(weighted_credits/credits_counted, 2)131 level_gpa = round(weighted_credits/credits_counted, 3) 132 132 return level_gpa, credits_counted, weighted_credits 133 133 -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r10553 r10586 803 803 self.assertEqual(self.student['studycourse']['100'].gpa_params_rectified[2], 82.0) 804 804 # sgpa = 82 / 23 805 self.assertEqual(self.student['studycourse']['100'].gpa_params_rectified[0], 3.5 7)805 self.assertEqual(self.student['studycourse']['100'].gpa_params_rectified[0], 3.565) 806 806 # Carry-over courses will be collected when next level is created 807 807 self.browser.open(self.student_path + '/studycourse/manage')
Note: See TracChangeset for help on using the changeset viewer.