Changeset 14483


Ignore:
Timestamp:
31 Jan 2017, 15:07:11 (8 years ago)
Author:
Henrik Bettermann
Message:

Show 'NIL' for courses registered with no result.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students/reports
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/raw_score_report.py

    r14482 r14483  
    8888                        ticket.score + ticket.ca, ticket.grade)
    8989                else:
    90                     scores[ticket.code] = ('0', '')
     90                    scores[ticket.code] = ('NIL', '')
    9191        fullname = textwrap.fill(stud.display_fullname, 26)
    9292        line = (
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_raw_score_report.py

    r14425 r14483  
    4747        self.assertEqual(result,
    4848            [(u'1234', u'TESTER, Bob', {'Course1': (70, 'A')})])
     49        self.student['studycourse']['100']['Course1'].ca = None
     50        result = get_students('fac1', 'dep1', 'CERT1', 2010, 100, course_codes)
     51        self.assertEqual(result,
     52            [(u'1234', u'TESTER, Bob', {'Course1': ('NIL', '')})])
    4953        return
    5054
Note: See TracChangeset for help on using the changeset viewer.