Ignore:
Timestamp:
22 Dec 2016, 20:22:28 (8 years ago)
Author:
Henrik Bettermann
Message:

Customize _display_gpa.

File:
1 edited

Legend:

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

    r14355 r14362  
    116116        # sgpa = 82 / 23
    117117        self.assertEqual(
    118             self.student['studycourse']['100'].gpa_params[0], 3.565)
     118            self.student['studycourse']['100'].gpa_params[0], 3.56)
    119119        # imported gpa values override calculated values
    120120        studylevel.imported_gpa = 4.3
     
    388388        self.assertEqual(self.browser.headers['Content-Type'],
    389389                         'text/csv; charset=UTF-8')
    390         self.assertEqual(self.browser.contents, 'matric_number,student_id,'
    391             'level,code,level_session,ca,score\r\n234,E1000000,'
     390        self.assertEqual(self.browser.contents, 'matric_number,student_id,display_fullname,'
     391            'level,code,level_session,ca,score\r\n234,E1000000,"TESTER, Anna",'
    392392            '100,COURSE1,2003,,55\r\n')
    393393        self.browser.open(self.edit_prev_scores_url)
     
    453453        self.assertEqual(td[0][1]['level'].level_session, 2006)
    454454        self.assertEqual(td[0][1]['tickets_1'][0].code, 'ANYCODE')
    455         self.assertEqual(td[1], 3.57)
     455        self.assertEqual(td[1], 3.56)
    456456        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    457457        self.browser.open(self.student_path + '/studycourse/transcript')
Note: See TracChangeset for help on using the changeset viewer.