Ignore:
Timestamp:
30 May 2013, 21:37:46 (12 years ago)
Author:
Henrik Bettermann
Message:

Ensure that all exports are being discarded in tests.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 edited

Legend:

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

    r10029 r10258  
    236236            'code,title,title_prefix,users_with_local_roles\r\n'
    237237            'fac1,Unnamed Faculty,faculty,[]\r\n')
     238        # Thew job can be discarded
     239        self.browser.open(self.datacenter_path + '/export')
     240        self.browser.getControl("Discard").click()
     241        self.assertEqual(len(self.app['datacenter'].running_exports), 0)
    238242
    239243        # after download, the job and the result file are removed
     
    287291            'random_num,representation,state\r\n',
    288292            self.browser.contents)
     293
     294        # Thew job can be discarded
     295        self.browser.open(self.datacenter_path + '/export')
     296        self.browser.getControl("Discard").click()
     297        self.assertEqual(len(self.app['datacenter'].running_exports), 0)
    289298
    290299        # Login as officer who is not allowed to download accesscodes
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r10257 r10258  
    31673167        self.assertFalse('<option value="students">' in self.browser.contents)
    31683168        self.assertTrue('<option value="bursary">' in self.browser.contents)
    3169 
     3169        # Thew job can be discarded
     3170        self.assertEqual(len(self.app['datacenter'].running_exports), 1)
     3171        #job_id = self.app['datacenter'].running_exports[0][0]
     3172        job_id = self.wait_for_export_job_completed()
     3173        self.browser.open('http://localhost/app/faculties/exports')
     3174        self.browser.getControl("Discard").click()
     3175        self.assertEqual(len(self.app['datacenter'].running_exports), 0)
Note: See TracChangeset for help on using the changeset viewer.