Ignore:
Timestamp:
30 May 2016, 14:32:21 (9 years ago)
Author:
Henrik Bettermann
Message:

Categorization by "Study Modes" too.

File:
1 edited

Legend:

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

    r13860 r13870  
    2323    def test_iface(self):
    2424        # ensure we fullfill interface contracts
    25         obj = StudentLevelStatisticsReport(2010, 'faccode')
     25        obj = StudentLevelStatisticsReport(2010, 'Undergraduate Full-Time', 'faccode')
    2626        verifyClass(IStudentLevelStatisticsReport, StudentLevelStatisticsReport)
    2727        verifyObject(IStudentLevelStatisticsReport, obj)
     
    3232        self.student.sex = 'm'
    3333        # we can get a table with one student
    34         result1 = get_student_stats(2010, 'faccode')
    35         result2 = get_student_stats(2009, 'faccode')
     34        result1 = get_student_stats(2010, 'Undergraduate Full-Time', 'faccode')
     35        result2 = get_student_stats(2009, 'Undergraduate Full-Time', 'faccode')
    3636        self.assertEqual(
    3737            result1,
     
    5454        self.create_cert(u'fac2', u'dep2', u'CERT2')
    5555        self.student.sex = 'm'
    56         result1 = get_student_stats(2010, 'faccode')
    57         result2 = get_student_stats(2009, 'faccode')
     56        result1 = get_student_stats(2010, 'Undergraduate Full-Time', 'faccode')
     57        result2 = get_student_stats(2009, 'Undergraduate Full-Time', 'faccode')
    5858        self.assertEqual(
    5959            result1,
     
    7878        self.create_cert(u'fac2', u'dep2', u'CERT2')
    7979        self.student.sex = 'm'
    80         result1 = get_student_stats(2010, 'depcode')
    81         result2 = get_student_stats(2009, 'depcode')
     80        result1 = get_student_stats(2010, 'Undergraduate Full-Time', 'depcode')
     81        result2 = get_student_stats(2009, 'Undergraduate Full-Time', 'depcode')
    8282        self.assertEqual(
    8383            result1,
     
    102102        self.create_cert(u'FAC2', u'dept2', u'CERT2')
    103103        self.student['studycourse'].current_level = 220
    104         report = StudentLevelStatisticsReport(2010, 'depcode')
     104        report = StudentLevelStatisticsReport(2010, 'Undergraduate Full-Time', 'depcode')
    105105        result = report.create_pdf()
    106106        self.assertTrue(result.startswith('%PDF-'))
Note: See TracChangeset for help on using the changeset viewer.