Skip to content

Commit

Permalink
Fix coding standards issues
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jun 9, 2016
1 parent 0d07630 commit a5600e5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
2 changes: 2 additions & 0 deletions ckan/tests/config/test_sessions.py
@@ -1,3 +1,5 @@
# encoding: utf-8

from nose.tools import ok_

from flask import Blueprint
Expand Down
2 changes: 2 additions & 0 deletions ckan/views/api.py
@@ -1,3 +1,5 @@
# encoding: utf-8

import cgi
import logging

Expand Down
2 changes: 2 additions & 0 deletions ckanext/example_flask_iblueprint/plugin.py
@@ -1,3 +1,5 @@
# encoding: utf-8

from flask import Blueprint
from flask import render_template, render_template_string

Expand Down
2 changes: 2 additions & 0 deletions ckanext/example_flask_iblueprint/tests/test_routes.py
@@ -1,3 +1,5 @@
# encoding: utf-8

from nose.tools import eq_, ok_

import ckan.plugins as plugins
Expand Down
Expand Up @@ -27,7 +27,6 @@ def setup_class(cls):
# Make a copy of the Pylons config, so we can restore it in teardown.
cls._original_config = dict(config)


def _get_app(self, users_can_create_groups):

config['ckan.plugins'] = 'example_iauthfunctions_v5_custom_config_setting'
Expand Down
2 changes: 1 addition & 1 deletion ckanext/example_igroupform/tests/test_controllers.py
Expand Up @@ -48,7 +48,7 @@ def test_about(self):

with app.flask_app.test_request_context():
url = url_for('%s_about' % custom_group_type,
id=group_name)
id=group_name)
response = app.get(url=url, extra_environ=env)
response.mustcontain(group_name)

Expand Down
6 changes: 3 additions & 3 deletions ckanext/example_itranslation/tests/test_plugin.py
Expand Up @@ -22,7 +22,7 @@ def test_translated_string_in_extensions_templates(self):

with app.flask_app.test_request_context():
url = plugins.toolkit.url_for(controller='home', action='index',
locale='fr')
locale='fr')

response = app.get(url)
assert_true('This is a itranslated string' in response.body)
Expand All @@ -42,7 +42,7 @@ def test_translated_string_in_core_templates(self):

with app.flask_app.test_request_context():
url = plugins.toolkit.url_for(controller='home', action='index',
locale='fr')
locale='fr')

response = app.get(url)
assert_true('Overwritten string in ckan.mo' in response.body)
Expand All @@ -61,7 +61,7 @@ def test_translated_string_in_core_templates(self):

with app.flask_app.test_request_context():
url = plugins.toolkit.url_for(controller='home', action='index',
locale='de')
locale='de')

response = app.get(url)
assert_true('Einloggen' in response.body)
Expand Down

0 comments on commit a5600e5

Please sign in to comment.