Ignore:
Timestamp:
8 Feb 2017, 07:39:08 (8 years ago)
Author:
Henrik Bettermann
Message:

Adjust reports: Change footer and filename formats.

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

Legend:

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

    r14423 r14514  
    129129                         'application/pdf')
    130130        self.assertTrue(
    131             'filename="LevelReport_fac1_dep1_CERT1_2010_100_' in
     131            'filename="LevelReport_rno%s' % job_id in
    132132            self.browser.headers['content-disposition'])
    133133        self.assertEqual(len(self.app['reports'].running_report_jobs), 1)
    134         job_id = self.app['reports'].running_report_jobs[0][0]
    135134        # ... and discarded
    136135        self.browser.open('http://localhost/app/reports')
     
    149148        self.assertTrue(
    150149            'INFO - zope.mgr - students.reports.level_report.LevelReportPDFView - '
    151             'report %s downloaded: LevelReport_fac1_dep1_CERT1_2010_100_'
    152             % job_id in logcontent
     150            'report %s downloaded: LevelReport_rno%s'
     151            % (job_id, job_id) in logcontent
    153152            )
    154153        self.assertTrue(
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_session_results_presentation.py

    r14423 r14514  
    158158                         'application/pdf')
    159159        self.assertTrue(
    160             'filename="SessionResultsPresentation_fac1_dep1_CERT1_2010_100_' in
     160            'filename="SessionResultsPresentation_rno%s' % job_id in
    161161            self.browser.headers['content-disposition'])
    162162        self.assertEqual(len(self.app['reports'].running_report_jobs), 1)
    163         job_id = self.app['reports'].running_report_jobs[0][0]
    164163        # ... and discarded
    165164        self.browser.open('http://localhost/app/reports')
     
    178177        self.assertTrue(
    179178            'INFO - zope.mgr - students.reports.session_results_presentation.SessionResultsPresentationPDFView - '
    180             'report %s downloaded: SessionResultsPresentation_fac1_dep1_CERT1_2010_100_'
    181             % job_id in logcontent
     179            'report %s downloaded: SessionResultsPresentation_rno%s'
     180            % (job_id, job_id) in logcontent
    182181            )
    183182        self.assertTrue(
     
    199198                         'application/pdf')
    200199        self.assertTrue(
    201             'filename="SessionResultsPresentation_fac1_dep1_CERT1_2010_0_' in
     200            'filename="SessionResultsPresentation_rno%s' % job_id in
    202201            self.browser.headers['content-disposition'])
    203202        self.assertEqual(len(self.app['reports'].running_report_jobs), 1)
    204         job_id = self.app['reports'].running_report_jobs[0][0]
    205203        # ... and discarded
    206204        self.browser.open('http://localhost/app/reports')
     
    219217        self.assertTrue(
    220218            'INFO - zope.mgr - students.reports.session_results_presentation.SessionResultsPresentationPDFView - '
    221             'report %s downloaded: SessionResultsPresentation_fac1_dep1_CERT1_2010_0_'
    222             % job_id in logcontent
     219            'report %s downloaded: SessionResultsPresentation_rno%s'
     220            % (job_id, job_id) in logcontent
    223221            )
    224222        self.assertTrue(
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_student_statistics.py

    r14373 r14514  
    181181                         'application/pdf')
    182182        self.assertTrue(
    183             'filename="StudentStatisticsReport_2004_2005_All_' in
     183            'filename="StudentStatisticsReport_rno%s' % job_id in
    184184            self.browser.headers['content-disposition'])
    185185        self.assertEqual(len(self.app['reports'].running_report_jobs), 1)
    186         job_id = self.app['reports'].running_report_jobs[0][0]
    187186        # ... and discarded
    188187        self.browser.open('http://localhost/app/reports')
     
    200199        self.assertTrue(
    201200            'INFO - zope.mgr - students.reports.student_statistics.StudentStatisticsReportPDFView - '
    202             'report %s downloaded: StudentStatisticsReport_2004_2005_All__'
    203             % job_id in logcontent
     201            'report %s downloaded: StudentStatisticsReport_rno%s'
     202            % (job_id, job_id) in logcontent
    204203            )
    205204        self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.