Changeset 14382 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 10 Jan 2017, 18:33:30 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r14368 r14382 874 874 # sgpa = 82 / 23 875 875 self.assertEqual( 876 self.student['studycourse']['100'].gpa_params_rectified[0], 3.565) 876 self.student['studycourse']['100'].gpa_params_rectified[0], 877 3.5652173913043477) 877 878 # Carry-over courses will be collected when next level is created 878 879 self.browser.open(self.student_path + '/studycourse/manage') … … 903 904 self.assertEqual( 904 905 self.student['studycourse']['100'].cumulative_params, 905 (2.26 1, 23, 52.0, 23, 13))906 (2.260869565217391, 23, 52.0, 23, 13)) 906 907 # COURSE1 in level 200 is not taken into consideration 907 908 # when calculating the gpa. 908 909 self.assertEqual( 909 910 self.student['studycourse']['200'].cumulative_params, 910 (2.26 1, 23, 52.0, 33, 13))911 (2.260869565217391, 23, 52.0, 33, 13)) 911 912 return 912 913 … … 2103 2104 self.assertEqual(td[0][1]['level'].level_session, 2006) 2104 2105 self.assertEqual(td[0][1]['tickets_1'][0].code, 'ANYCODE') 2105 self.assertEqual(td[1], 3.5 7)2106 self.assertEqual(td[1], 3.5652173913043477) 2106 2107 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 2107 2108 self.browser.open(self.student_path + '/studycourse/transcript')
Note: See TracChangeset for help on using the changeset viewer.