Ignore:
Timestamp:
6 Jun 2013, 10:41:40 (12 years ago)
Author:
Henrik Bettermann
Message:

gpa is no longer a field attribute of CustomStudentStudyLevel?.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
3 edited

Legend:

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

    r10271 r10284  
    156156
    157157    form_fields = grok.AutoFields(ICustomStudentStudyLevel).omit(
    158         'level_verdict', 'gpa')
     158        'level_verdict')
    159159
    160160    def render(self):
  • main/waeup.uniben/trunk/src/waeup/uniben/students/studylevel.py

    r9765 r10284  
    3939
    4040CustomStudentStudyLevel = attrs_to_fields(
    41     CustomStudentStudyLevel, omit=['total_credits', 'gpa'])
     41    CustomStudentStudyLevel, omit=['total_credits'])
    4242
    4343class CustomStudentStudyLevelFactory(StudentStudyLevelFactory):
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r9902 r10284  
    348348        self.student['studycourse']['100']['COURSE1'].score = 55
    349349        self.browser.getLink("100").click()
    350         # GPA has been properly calculated and is shown on the page
    351         self.assertTrue('3.0' in self.browser.contents)
    352         self.assertEqual(self.student['studycourse']['100'].gpa, 3.0)
     350        # GPA has been properly calculated
     351        self.assertEqual(self.student['studycourse']['100'].gpa_params[0], 3.0)
    353352        # Score is not shown but grade
    354353        self.assertTrue('<th>Grade</th>' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.