Ignore:
Timestamp:
10 Sep 2013, 11:39:24 (11 years ago)
Author:
Henrik Bettermann
Message:

Determine cumulative sessional gpa and other cumulative parameters needed for level reports.

File:
1 edited

Legend:

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

    r10586 r10598  
    814814        self.assertMatches(
    815815            '...: Study Level 200 (Year 2)...', self.browser.contents)
    816         # If COURSE1 has score 10 it becomes a carry-over course
     816        # Since COURSE1 has score 10 it becomes a carry-over course
    817817        # in level 200
    818818        self.assertEqual(
     
    827827            self.student['studycourse']['200'].passed_params,
    828828            (0, 0, 0, 0, []))
     829        # And also cumulative params can be calculated. Meanwhile we have the
     830        # following courses: COURSE1 and COURSE2 in level 100 and
     831        # COURSE1 as carry-over course in level 200.
     832        self.assertEqual(
     833            self.student['studycourse']['100'].cumulative_params,
     834            (2.261, 23, 52.0, 23, 13))
     835        # COURSE1 in level 200 is not taken into consideration
     836        # when calculating the gpa.
     837        self.assertEqual(
     838            self.student['studycourse']['200'].cumulative_params,
     839            (2.261, 23, 52.0, 33, 13))
    829840        return
    830841
Note: See TracChangeset for help on using the changeset viewer.