Skip to content

Commit

Permalink
[#2322] Fix PEP8 and don't pollute global config
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Mar 2, 2015
1 parent aa97617 commit 3bf1d0a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ckanext/reclineview/tests/test_view.py
Expand Up @@ -88,11 +88,11 @@ def setup_class(cls):
p.load('recline_view')
if not p.plugin_loaded('datastore'):
p.load('datastore')

config['ckan.legacy_templates'] = 'false'
config['ckan.plugins'] = 'recline_view datastore'
config['ckan.views.default_views'] = 'recline_view'
wsgiapp = middleware.make_app(config['global_conf'], **config)
app_config = config.copy()
app_config['ckan.legacy_templates'] = 'false'
app_config['ckan.plugins'] = 'recline_view datastore'
app_config['ckan.views.default_views'] = 'recline_view'
wsgiapp = middleware.make_app(config['global_conf'], **app_config)
cls.app = paste.fixture.TestApp(wsgiapp)

@classmethod
Expand All @@ -108,7 +108,7 @@ def test_create_datastore_only_view(self):
'resource': {'package_id': dataset['id']},
'fields': [{'id': 'a'}, {'id': 'b'}],
'records': [{'a': 1, 'b': 'xyz'}, {'a': 2, 'b': 'zzz'}]
}
}
result = helpers.call_action('datastore_create', **data)

resource_id = result['resource_id']
Expand Down

0 comments on commit 3bf1d0a

Please sign in to comment.