Ignore:
Timestamp:
21 Apr 2020, 07:58:26 (5 years ago)
Author:
Henrik Bettermann
Message:

Implement ApplicantRefereeReportExporter.

File:
1 edited

Legend:

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

    r16059 r16064  
    15621562        self.browser.getControl("Start new exports").click()
    15631563        job_ids = self.wait_for_export_jobs_completed()
    1564         # Two exports were created
    1565         self.assertEqual(len(self.app['datacenter'].running_exports), 2)
     1564        # Three exports were created
     1565        self.assertEqual(len(self.app['datacenter'].running_exports), 3)
    15661566       # When the jobs are finished and we reload the page...
    15671567        self.browser.open(container_path + '/exports')
     
    15801580            'filename="WAeUP.Kofa_applicantpayments_%s.csv' % job_ids[1] in
    15811581            self.browser.headers['content-disposition'])
     1582        self.browser.open(container_path + '/exports')
     1583        self.browser.getLink("Download", index=2).click()
     1584        self.assertEqual(self.browser.headers['content-type'],
     1585            'text/csv; charset=UTF-8')
     1586        self.assertTrue(
     1587            'filename="WAeUP.Kofa_applicantrefereereports_%s.csv' % job_ids[2] in
     1588            self.browser.headers['content-disposition'])
    15821589        # ... and discarded
    15831590        self.browser.open(container_path + '/exports')
     1591        self.browser.getControl("Discard", index=0).click()
     1592        self.assertEqual(len(self.app['datacenter'].running_exports), 2)
    15841593        self.browser.getControl("Discard", index=0).click()
    15851594        self.assertEqual(len(self.app['datacenter'].running_exports), 1)
     
    16171626            'zope.mgr - applicants.browser.ExportJobContainerOverview '
    16181627            '- discarded: job_id=%s' % job_ids[1] in logcontent
     1628            )
     1629        self.assertTrue(
     1630            'zope.mgr - applicants.browser.ExportJobContainerJobStart - '
     1631            'exported: applicantrefereereports (%s), job_id=%s'
     1632            % (container_name_1, job_ids[2]) in logcontent
     1633            )
     1634        self.assertTrue(
     1635            'zope.mgr - applicants.browser.ExportJobContainerDownload '
     1636            '- downloaded: WAeUP.Kofa_applicantrefereereports_%s.csv, job_id=%s'
     1637            % (job_ids[2], job_ids[2]) in logcontent
     1638            )
     1639        self.assertTrue(
     1640            'zope.mgr - applicants.browser.ExportJobContainerOverview '
     1641            '- discarded: job_id=%s' % job_ids[2] in logcontent
    16191642            )
    16201643
Note: See TracChangeset for help on using the changeset viewer.