Ignore:
Timestamp:
2 Feb 2017, 08:15:48 (8 years ago)
Author:
Henrik Bettermann
Message:

Customize raw score report components of base package.

File:
1 edited

Legend:

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

    r14483 r14496  
    88from waeup.kofa.tests.test_async import FunctionalAsyncTestCase
    99from waeup.kofa.browser.tests.test_pdf import samples_dir
    10 
    11 from waeup.aaue.students.reports.raw_score_report import (
    12     get_students, RawScoreReport, IRawScoreReport,
    13     get_courses)
     10from waeup.kofa.students.reports.raw_score_report import (
     11    get_students, IRawScoreReport, get_courses)
     12from waeup.aaue.students.reports.raw_score_report import CustomRawScoreReport
    1413from waeup.aaue.testing import FunctionalLayer
    1514
     
    2221        self.course = createObject('waeup.Course')
    2322        self.course.code = 'Course1'
     23        self.course.credits = 25
    2424        self.app['faculties']['fac1']['dep1'].courses.addCourse(
    2525            self.course)
     
    2929    def test_iface(self):
    3030        # ensure we fullfill interface contracts
    31         obj = RawScoreReport('fac1', 'dep1', 'CERT1', 2010, 100)
    32         verifyClass(IRawScoreReport, RawScoreReport)
     31        obj = CustomRawScoreReport('fac1', 'dep1', 'CERT1', 2010, 100)
     32        verifyClass(IRawScoreReport, CustomRawScoreReport)
    3333        verifyObject(IRawScoreReport, obj)
    3434        return
     
    5656        self.course = createObject('waeup.Course')
    5757        self.course.code = 'Course2'
     58        self.course.credits = 30
    5859        self.app['faculties']['fac1']['dep1'].courses.addCourse(
    5960            self.course)
     
    7273        self.student.firstname = u'Osahenokese Tessy'
    7374        self.student.lastname = u'Emwinyomwanru'
    74         report = RawScoreReport('fac1', 'dep1', 'CERT1', 2011, 200)
     75        report = CustomRawScoreReport('fac1', 'dep1', 'CERT1', 2011, 200)
    7576        result = report.create_pdf('JOB_ID')
    7677        self.assertTrue(result.startswith('%PDF-'))
Note: See TracChangeset for help on using the changeset viewer.