Ignore:
Timestamp:
10 Jan 2017, 18:33:30 (8 years ago)
Author:
Henrik Bettermann
Message:

Exchange level and session on report slips.

Use sting formatting for displaying GPA values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r14368 r14382  
    874874        # sgpa = 82 / 23
    875875        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)
    877878        # Carry-over courses will be collected when next level is created
    878879        self.browser.open(self.student_path + '/studycourse/manage')
     
    903904        self.assertEqual(
    904905            self.student['studycourse']['100'].cumulative_params,
    905             (2.261, 23, 52.0, 23, 13))
     906            (2.260869565217391, 23, 52.0, 23, 13))
    906907        # COURSE1 in level 200 is not taken into consideration
    907908        # when calculating the gpa.
    908909        self.assertEqual(
    909910            self.student['studycourse']['200'].cumulative_params,
    910             (2.261, 23, 52.0, 33, 13))
     911            (2.260869565217391, 23, 52.0, 33, 13))
    911912        return
    912913
     
    21032104        self.assertEqual(td[0][1]['level'].level_session, 2006)
    21042105        self.assertEqual(td[0][1]['tickets_1'][0].code, 'ANYCODE')
    2105         self.assertEqual(td[1], 3.57)
     2106        self.assertEqual(td[1], 3.5652173913043477)
    21062107        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    21072108        self.browser.open(self.student_path + '/studycourse/transcript')
Note: See TracChangeset for help on using the changeset viewer.