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

Ensure that all exports are being discarded in tests.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.