Ignore:
Timestamp:
20 Nov 2012, 06:17:36 (12 years ago)
Author:
Henrik Bettermann
Message:

Use new attrs_to_fields function to display gpa and total_credits on level pages.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students/tests
Files:
2 edited

Legend:

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

    r9687 r9690  
    767767        # GPA has been properly calculated and is shown on the page
    768768        self.browser.open(self.student_path + '/studycourse/100')
    769         self.assertTrue('3.00' in self.browser.contents)
     769        self.assertTrue('3.0' in self.browser.contents)
    770770        self.assertEqual(self.student['studycourse']['100'].gpa, 3.0)
    771771        # Carry-over courses will be collected when next level is created
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r9684 r9690  
    219219        self.assertEqual(
    220220            result,
    221             'level,level_session,level_verdict,validated_by,validation_date,'
     221            'gpa,level,level_session,level_verdict,total_credits,'
     222            'validated_by,validation_date,'
    222223            'student_id,number_of_tickets,certcode\r\n'
    223             ',,0,,,,0,\r\n'
     224            '0.0,,,0,0,,,,0,\r\n'
    224225            )
    225226        return
     
    236237        self.assertEqual(
    237238            result,
    238             'level,level_session,level_verdict,validated_by,validation_date,'
     239            'gpa,level,level_session,level_verdict,total_credits,'
     240            'validated_by,validation_date,'
    239241            'student_id,number_of_tickets,certcode\r\n'
    240             '100,2012,A,,,A111111,1,CERT1\r\n'
     242            '0.0,100,2012,A,100,,,A111111,1,CERT1\r\n'
    241243            )
    242244        return
     
    251253        self.assertEqual(
    252254            result,
    253             'level,level_session,level_verdict,validated_by,validation_date,'
     255            'gpa,level,level_session,level_verdict,total_credits,'
     256            'validated_by,validation_date,'
    254257            'student_id,number_of_tickets,certcode\r\n'
    255             '100,2012,A,,,A111111,1,CERT1\r\n'
     258            '0.0,100,2012,A,100,,,A111111,1,CERT1\r\n'
    256259            )
    257260        return
     
    265268        self.assertEqual(
    266269            result,
    267             'level,level_session,level_verdict,validated_by,validation_date,'
     270            'gpa,level,level_session,level_verdict,total_credits,'
     271            'validated_by,validation_date,'
    268272            'student_id,number_of_tickets,certcode\r\n'
    269             '100,2012,A,,,A111111,1,CERT1\r\n'
     273            '0.0,100,2012,A,100,,,A111111,1,CERT1\r\n'
    270274            )
    271275        return
Note: See TracChangeset for help on using the changeset viewer.