Ignore:
Timestamp:
13 Jan 2017, 11:34:53 (8 years ago)
Author:
Henrik Bettermann
Message:

List codes of course w/o result.

File:
1 edited

Legend:

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

    r14390 r14392  
    4242        self.assertEqual(result,
    4343            [(u'1234', u'Bob Tester', 90, 30, '1.666',
    44             'm_Course2_m Course3', 0, 90, 30, '1.666', '')])
     44            'm_Course2_m Course3', '', 90, 30, '1.666', '')])
    4545        return
    4646
     
    5959        ticket.credits = 30
    6060        ticket.score = 30
    61         ticket.mandatory = False
    62         ticket.passmark = 40
    6361        self.student['studycourse']['100']['Course3'] = ticket
     62        ticket2 = createObject('waeup.CourseTicket')
     63        ticket2.code = 'Course4'
     64        ticket2.credits = 30
     65        self.student['studycourse']['100']['Course4'] = ticket2
     66        ticket3 = createObject('waeup.CourseTicket')
     67        ticket3.code = 'Course5'
     68        ticket3.credits = 30
     69        self.student['studycourse']['100']['Course5'] = ticket3
     70        ticket4 = createObject('waeup.CourseTicket')
     71        ticket4.code = 'Course5'
     72        ticket4.credits = 30
     73        self.student['studycourse']['100']['Course6'] = ticket4
    6474        report = LevelReport('fac1', 'dep1', 2010, 100)
    6575        result = report.create_pdf('JOB_ID')
Note: See TracChangeset for help on using the changeset viewer.