Ignore:
Timestamp:
19 Nov 2012, 18:08:39 (12 years ago)
Author:
Henrik Bettermann
Message:

Remove total_credits method from view. This is already done in the content class.

Calculate momentary gpa and show on level page.

File:
1 edited

Legend:

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

    r9684 r9687  
    765765        self.assertEqual(self.student['studycourse']['100']['COURSE1'].grade, 'C')
    766766        self.assertEqual(self.student['studycourse']['100']['COURSE1'].weight, 3)
     767        # GPA has been properly calculated and is shown on the page
     768        self.browser.open(self.student_path + '/studycourse/100')
     769        self.assertTrue('3.00' in self.browser.contents)
     770        self.assertEqual(self.student['studycourse']['100'].gpa, 3.0)
    767771        # Carry-over courses will be collected when next level is created
    768772        self.browser.open(self.student_path + '/studycourse/manage')
Note: See TracChangeset for help on using the changeset viewer.