Ignore:
Timestamp:
7 Jan 2013, 08:01:24 (12 years ago)
Author:
Henrik Bettermann
Message:

Rename jobconfig to exportconfig.

Improve logging of exporting, downloading and discarding exports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/tests/test_browser.py

    r9835 r9836  
    224224            self.app['datacenter'].storage, 'logs', 'datacenter.log')
    225225        logcontent = open(logfile).read()
     226        self.assertTrue('zope.mgr - browser.pages.ExportCSVPage - exported: '
     227                        'faculties, job_id=' in logcontent)
    226228        self.assertTrue('zope.mgr - browser.pages.ExportCSVView - '
    227                         'exported: WAeUP.Kofa_faculties.csv' in logcontent)
     229                        'downloaded: WAeUP.Kofa_faculties.csv, job_id=' in logcontent)
    228230        return
    229231
     
    308310            'current_session\r\n')
    309311        self.cleanup_run_job()
     312        logfile = os.path.join(
     313            self.app['datacenter'].storage, 'logs', 'datacenter.log')
     314        logcontent = open(logfile).read()
     315        self.assertTrue(
     316            'zope.mgr - students.browser.DatacenterExportJobContainerJobConfig '
     317            '- exported: students (None, None, None, None), job_id='
     318            in logcontent)
     319        self.assertTrue(
     320            'zope.mgr - browser.pages.ExportCSVView '
     321            '- downloaded: WAeUP.Kofa_students.csv, job_id=' in logcontent)
    310322        return
    311323
     
    317329        self.browser.getControl("Discard").click()
    318330        self.assertTrue('Discarded export' in self.browser.contents)
     331        logfile = os.path.join(
     332            self.app['datacenter'].storage, 'logs', 'datacenter.log')
     333        logcontent = open(logfile).read()
     334        self.assertTrue(
     335            'zope.mgr - browser.pages.ExportCSVPage - discarded: job_id='
     336            in logcontent)
    319337        return
    320338
Note: See TracChangeset for help on using the changeset viewer.