Ignore:
Timestamp:
6 Jan 2017, 22:40:30 (8 years ago)
Author:
Henrik Bettermann
Message:

Show report number (job_id) on report pdf slips.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests
Files:
4 edited

Legend:

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

    r14372 r14373  
    6363        self.student['studycourse']['100']['Course3'] = ticket
    6464        report = LevelReport('fac1', 'dep1', 2010, 100)
    65         result = report.create_pdf()
     65        result = report.create_pdf('JOB_ID')
    6666        self.assertTrue(result.startswith('%PDF-'))
    6767        path = os.path.join(samples_dir(), 'level_report.pdf')
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_session_results_presentation.py

    r12898 r14373  
    6363    def test_create_pdf(self):
    6464        report = SessionResultsPresentation('fac1', 'dep1', 2010, 100)
    65         result = report.create_pdf()
     65        result = report.create_pdf('JOB_ID')
    6666        self.assertTrue(result.startswith('%PDF-'))
    6767        path = os.path.join(samples_dir(), 'session_results_presentation.pdf')
     
    8181        self.student['studycourse']['620']['Course2'] = ticket
    8282        report = SessionResultsPresentation('fac1', 'dep1', 2013, 620)
    83         result = report.create_pdf()
     83        result = report.create_pdf('JOB_ID')
    8484        self.assertTrue(result.startswith('%PDF-'))
    8585        path = os.path.join(samples_dir(), 'session_results_presentation_620.pdf')
     
    102102        self.student['studycourse']['200']['Course2'] = ticket
    103103        report = SessionResultsPresentation('fac1', 'dep1', 2010, 0)
    104         result = report.create_pdf()
     104        result = report.create_pdf('JOB_ID')
    105105        self.assertTrue(result.startswith('%PDF-'))
    106106        path = os.path.join(samples_dir(), 'session_results_presentation_erroneous.pdf')
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_student_payment_statistics.py

    r12897 r14373  
    5656        report = StudentPaymentStatisticsReport(
    5757            2010, 'Undergraduate Full-Time', 0,  'faccode')
    58         result = report.create_pdf()
     58        result = report.create_pdf('JOB_ID')
    5959        self.assertTrue(result.startswith('%PDF-'))
    6060        path = os.path.join(samples_dir(), 'student_payment_statistics.pdf')
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_student_statistics.py

    r14169 r14373  
    120120        report = StudentStatisticsReport(
    121121            2010, 'Undergraduate Full-Time', 0, 'faccode')
    122         result = report.create_pdf()
     122        result = report.create_pdf('JOB_ID')
    123123        self.assertTrue(result.startswith('%PDF-'))
    124124        path = os.path.join(samples_dir(), 'student_statistics.pdf')
     
    131131        report = StudentStatisticsReport(
    132132            2010, 'Undergraduate Full-Time', 100, 'faccode')
    133         result = report.create_pdf()
     133        result = report.create_pdf('JOB_ID')
    134134        self.assertTrue(result.startswith('%PDF-'))
    135135        path = os.path.join(samples_dir(), 'student_statistics_100.pdf')
Note: See TracChangeset for help on using the changeset viewer.