Changeset 16064 for main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
- Timestamp:
- 21 Apr 2020, 07:58:26 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r16059 r16064 1562 1562 self.browser.getControl("Start new exports").click() 1563 1563 job_ids = self.wait_for_export_jobs_completed() 1564 # T woexports were created1565 self.assertEqual(len(self.app['datacenter'].running_exports), 2)1564 # Three exports were created 1565 self.assertEqual(len(self.app['datacenter'].running_exports), 3) 1566 1566 # When the jobs are finished and we reload the page... 1567 1567 self.browser.open(container_path + '/exports') … … 1580 1580 'filename="WAeUP.Kofa_applicantpayments_%s.csv' % job_ids[1] in 1581 1581 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']) 1582 1589 # ... and discarded 1583 1590 self.browser.open(container_path + '/exports') 1591 self.browser.getControl("Discard", index=0).click() 1592 self.assertEqual(len(self.app['datacenter'].running_exports), 2) 1584 1593 self.browser.getControl("Discard", index=0).click() 1585 1594 self.assertEqual(len(self.app['datacenter'].running_exports), 1) … … 1617 1626 'zope.mgr - applicants.browser.ExportJobContainerOverview ' 1618 1627 '- 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 1619 1642 ) 1620 1643
Note: See TracChangeset for help on using the changeset viewer.