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

Show GPA.

File:
1 edited

Legend:

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

    r9686 r9688  
    342342        # A level with one course ticket was created
    343343        self.assertEqual(self.student['studycourse']['100'].number_of_tickets, 1)
     344        self.student['studycourse']['100']['COURSE1'].score = 55
    344345        self.browser.getLink("100").click()
     346        # GPA has been properly calculated and is shown on the page
     347        self.assertTrue('3.00' in self.browser.contents)
     348        self.assertEqual(self.student['studycourse']['100'].gpa, 3.0)
     349        # Score is not shown but grade
    345350        self.assertTrue('<th>Grade</th>' in self.browser.contents)
    346351        self.assertFalse('<th>Score</th>' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.