Skip to content

Commit

Permalink
[#226] PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed May 29, 2013
1 parent e64d5e7 commit f577832
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions ckan/tests/test_coding_standards.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,7 @@ class TestImportFromCkan(object):
'ckan/tests/test_plugins.py',
'ckan/tests/test_wsgi_ckanclient.py',
'ckan/websetup.py',
'ckanext/jsonpreview/tests/test_preview.py',
'ckanext/multilingual/plugin.py',
'ckanext/pdfpreview/tests/test_preview.py',
'ckanext/reclinepreview/tests/test_preview.py',
'ckanext/stats/controller.py',
'ckanext/stats/stats.py',
Expand Down Expand Up @@ -761,12 +759,9 @@ class TestPep8(object):
'ckanext/datastore/tests/test_upsert.py',
'ckanext/example_idatasetform/plugin.py',
'ckanext/example_itemplatehelpers/plugin.py',
'ckanext/jsonpreview/plugin.py',
'ckanext/jsonpreview/tests/test_preview.py',
'ckanext/multilingual/plugin.py',
'ckanext/multilingual/tests/test_multilingual_plugin.py',
'ckanext/pdfpreview/plugin.py',
'ckanext/pdfpreview/tests/test_preview.py',
'ckanext/reclinepreview/plugin.py',
'ckanext/reclinepreview/tests/test_preview.py',
'ckanext/resourceproxy/controller.py',
Expand Down
10 changes: 5 additions & 5 deletions ckanext/textpreview/tests/test_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import ckan.plugins as plugins
import ckan.lib.helpers as h
import ckanext.textpreview.plugin as previewplugin
from ckan.lib.create_test_data import CreateTestData
from ckan.config.middleware import make_app
import ckan.lib.create_test_data as create_test_data
import ckan.config.middleware as middleware


class TestTextPreview(tests.WsgiAppCase):
Expand All @@ -19,13 +19,13 @@ class TestTextPreview(tests.WsgiAppCase):
def setup_class(cls):
cls._original_config = config.copy()
config['ckan.plugins'] = 'text_preview'
wsgiapp = make_app(config['global_conf'], **config)
wsgiapp = middleware.make_app(config['global_conf'], **config)
cls.app = paste.fixture.TestApp(wsgiapp)

cls.p = previewplugin.TextPreview()

# create test resource
CreateTestData.create()
create_test_data.CreateTestData.create()

context = {
'model': model,
Expand All @@ -45,7 +45,7 @@ def teardown_class(cls):
config.clear()
config.update(cls._original_config)
plugins.reset()
CreateTestData.delete()
create_test_data.CreateTestData.delete()

def test_can_preview(self):
data_dict = {
Expand Down

0 comments on commit f577832

Please sign in to comment.