Permalink
Browse files

Flake8 cleanup.

  • Loading branch information...
1 parent 6736d3b commit 42321f50b9569b90017322d8501ee9d660057f36 James Socol committed Nov 9, 2012
Showing with 4 additions and 8 deletions.
  1. +0 −1 jingo/tests/test_basics.py
  2. +4 −2 jingo/tests/test_helpers.py
  3. +0 −3 jingo/tests/test_loader.py
  4. +0 −2 jingo/tests/test_views.py
@@ -4,7 +4,6 @@
from mock import Mock, patch, sentinel
import jingo
-import jinja2
@patch('jingo.env')
@@ -153,13 +153,15 @@ def test_custom_url(s):
def test_filter_override():
- def f(s): return s.upper()
+ def f(s):
+ return s.upper()
f.__name__ = 'a'
register.filter(f)
s = render('{{ s|a }}', {'s': 'Str'})
eq_(s, 'STR')
- def g(s): return s.lower()
+ def g(s):
+ return s.lower()
g.__name__ = 'a'
register.filter(override=False)(g)
s = render('{{ s|a }}', {'s': 'Str'})
@@ -3,8 +3,6 @@
from nose.tools import eq_
from mock import Mock
-from jingo import get_env
-
def test_render():
r = render(Mock(), 'jinja_app/test.html', {})
@@ -34,4 +32,3 @@ def test_render_django_no_toplevel_override():
def test_render_django_toplevel_override():
r = render(Mock(), 'django_app/test_override.html', {})
eq_(r.content, 'HELLO ...\n')
-
@@ -1,9 +1,7 @@
from django.utils import translation
from mock import Mock, patch, sentinel
-import jinja2
from nose.tools import eq_
-from test_helpers import render
import jingo.views
from jingo import get_env

0 comments on commit 42321f5

Please sign in to comment.