Ignore:
Timestamp:
29 May 2016, 09:27:26 (9 years ago)
Author:
Henrik Bettermann
Message:

Fix level report (remove bug). Lists cannot be rendered. It seems that nobody has created level reports with failed courses so far.

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

Legend:

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

    r10616 r13868  
    2727        result = get_students('fac1', 'dep1', 2010, 100)
    2828        self.assertEqual(result,
    29             [(u'1234', u'Bob Tester', 30, 30, 5.0, [], 30, 30, 5.0)])
     29            [(u'1234', u'Bob Tester', 30, 30, 5.0, '', 30, 30, 5.0)])
    3030        return
    3131
  • main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py

    r13069 r13868  
    152152        """
    153153        passed = failed = 0
    154         courses_failed = []
     154        courses_failed = ''
    155155        credits_failed = 0
    156156        credits_passed = 0
     
    160160                    failed += 1
    161161                    credits_failed += ticket.credits
    162                     courses_failed.append(ticket.code)
     162                    courses_failed += '%s ' % ticket.code
    163163                else:
    164164                    passed += 1
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r13797 r13868  
    863863        self.assertEqual(
    864864            self.student['studycourse']['100'].passed_params,
    865             (1, 1, 13, 10, ['COURSE1']))
     865            (1, 1, 13, 10, 'COURSE1 '))
    866866        self.assertEqual(
    867867            self.student['studycourse']['200'].passed_params,
    868             (0, 0, 0, 0, []))
     868            (0, 0, 0, 0, ''))
    869869        # And also cumulative params can be calculated. Meanwhile we have the
    870870        # following courses: COURSE1 and COURSE2 in level 100 and
Note: See TracChangeset for help on using the changeset viewer.