Skip to content

Loading…

Fix indentation and ignore PEP8's E128 #6

Merged
merged 1 commit into from

3 participants

@stefanw

This will fix tests on Travis CI.

/cc @jezdez

@codysoyland codysoyland merged commit 8a5755c into codysoyland:master
@jezdez
Collaborator

Oops! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 10, 2012
  1. @stefanw
Showing with 5 additions and 6 deletions.
  1. +1 −1 Makefile
  2. +4 −5 phased/test_cases.py
View
2 Makefile
@@ -1,6 +1,6 @@
export DJANGO_SETTINGS_MODULE=phased.test_settings
test:
- flake8 phased --ignore=E501
+ flake8 phased --ignore=E501,E128
coverage run --branch --source=phased `which django-admin.py` test phased
coverage report --omit=phased/test*
View
9 phased/test_cases.py
@@ -8,8 +8,8 @@
from django.http import HttpResponse
from django.middleware.cache import FetchFromCacheMiddleware, UpdateCacheMiddleware
from django.utils.cache import patch_vary_headers
-from django.template import (compile_string, Context, TemplateSyntaxError,
- RequestContext)
+from django.template import (compile_string, Context,
+ TemplateSyntaxError, RequestContext)
from django.test.client import RequestFactory
from django.test import TestCase
@@ -225,7 +225,7 @@ class PhasedRenderMiddlewareTestCase(PhasedTestCase):
def test_basic(self):
request = self.factory.get('/')
response = HttpResponse(self.template %
- dict(delimiter=settings.PHASED_SECRET_DELIMITER))
+ dict(delimiter=settings.PHASED_SECRET_DELIMITER))
response = PhasedRenderMiddleware().process_response(request, response)
@@ -233,8 +233,7 @@ def test_basic(self):
def test_not_html(self):
request = self.factory.get('/')
- applied_delimiter = self.template % dict(
- delimiter=settings.PHASED_SECRET_DELIMITER)
+ applied_delimiter = self.template % dict(delimiter=settings.PHASED_SECRET_DELIMITER)
response = HttpResponse(applied_delimiter, mimetype='application/json')
response = PhasedRenderMiddleware().process_response(request, response)
Something went wrong with that request. Please try again.