Changeset 10284 for main/waeup.uniben/trunk/src
- Timestamp:
- 6 Jun 2013, 10:41:40 (11 years ago)
- 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 156 156 157 157 form_fields = grok.AutoFields(ICustomStudentStudyLevel).omit( 158 'level_verdict' , 'gpa')158 'level_verdict') 159 159 160 160 def render(self): -
main/waeup.uniben/trunk/src/waeup/uniben/students/studylevel.py
r9765 r10284 39 39 40 40 CustomStudentStudyLevel = attrs_to_fields( 41 CustomStudentStudyLevel, omit=['total_credits' , 'gpa'])41 CustomStudentStudyLevel, omit=['total_credits']) 42 42 43 43 class CustomStudentStudyLevelFactory(StudentStudyLevelFactory): -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r9902 r10284 348 348 self.student['studycourse']['100']['COURSE1'].score = 55 349 349 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) 353 352 # Score is not shown but grade 354 353 self.assertTrue('<th>Grade</th>' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.