Ignore:
Timestamp:
11 Feb 2015, 15:34:12 (10 years ago)
Author:
uli
Message:

flake8

File:
1 edited

Legend:

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

    r12595 r12596  
    1010from waeup.kofa.app import University
    1111from waeup.kofa.async import AsyncJob, get_job_id
    12 from waeup.kofa.interfaces import IJobManager, IKofaUtils
    13 from waeup.kofa.testing import (
    14     FunctionalTestCase, FunctionalLayer, expensive_actions,
    15     )
     12from waeup.kofa.interfaces import IJobManager
     13from waeup.kofa.testing import FunctionalLayer, expensive_actions
    1614from waeup.kofa.tests.test_async import FunctionalAsyncTestCase
    1715
    1816
    1917def fake_get_export_jobs_status(user_id=None):
    20     return [('completed', 'Completed', 'my_exporter'),]
     18    return [('completed', 'Completed', 'my_exporter'), ]
    2119
    2220
     
    5452        shutil.rmtree(self.workdir)
    5553
     54
    5655class JobViewTests(AsyncBrowserTests):
    5756    # Tests for the view of single jobs
     
    8584    def test_anonymous_forbidden(self):
    8685        # we need some permissions to get a job view
    87         transaction.commit() # make sure the 'app' is stored in ZODB
     86        transaction.commit()  # make sure the 'app' is stored in ZODB
    8887        job = self.start_job()
    8988        wait_for_result(job)
     
    117116        manager = getUtility(IJobManager)
    118117        job = AsyncJob(dummy_func)
    119         site = self.getRootFolder()
    120118        with expensive_actions() as utils:
    121             utils.expensive_actions_allowed = lambda : False
     119            utils.expensive_actions_allowed = lambda: False
    122120            result = manager.put(job, site=self.getRootFolder())
    123121        self.assertTrue(result is None)
     
    132130    def test_anonymous_forbidden(self):
    133131        # anonymous user will be kept out
    134         browser = Browser() # get a browser w/o credentials set
     132        browser = Browser()  # get a browser w/o credentials set
    135133        browser.handleErrors = False
    136134        self.assertRaises(Unauthorized, browser.open, self.overview_path)
     
    168166        return
    169167
     168
    170169class DataCenterJSONTests(AsyncBrowserTests):
    171170
Note: See TracChangeset for help on using the changeset viewer.