Ignore:
Timestamp:
16 Nov 2012, 21:43:29 (12 years ago)
Author:
Henrik Bettermann
Message:

Generate reports for students in a certain session and for groups of study modes.

File:
1 edited

Legend:

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

    r9633 r9647  
    11# Tests for student related reports
    2 from waeup.kofa.students.reports import get_students_by_session, StudentReport
     2from waeup.kofa.students.reports import (
     3    get_students_by, StudentReport)
    34from waeup.kofa.students.tests.test_catalog import CatalogTestSetup
    45from waeup.kofa.testing import FunctionalLayer
     
    1415    def test_get_students_by_session_simple(self):
    1516        # we can get a table with one student
    16         result1 = get_students_by_session(2010)
    17         result2 = get_students_by_session(2009)
     17        result1 = get_students_by(2010, 'Undergraduate Full-Time')
     18        result2 = get_students_by(2009, 'Undergraduate Full-Time')
    1819        self.assertEqual(
    1920            result1,
     
    3334        # we can get a table with several students
    3435        self.create_cert('fac2', 'dept2', 'CERT2')
    35         result1 = get_students_by_session(2010)
    36         result2 = get_students_by_session(2009)
     36        result1 = get_students_by(2010, 'Undergraduate Full-Time')
     37        result2 = get_students_by(2009, 'Undergraduate Full-Time')
    3738        self.assertEqual(
    3839            result1,
     
    5354    def test_create_pdf(self):
    5455        self.create_cert('FAC2', 'dept2', 'CERT2')
    55         report = StudentReport(2010)
     56        report = StudentReport(2010, 'Undergraduate Full-Time')
    5657        result = report.create_pdf()
    5758        self.assertTrue(result.startswith('%PDF-'))
Note: See TracChangeset for help on using the changeset viewer.