summaryrefslogtreecommitdiff
path: root/tests/template_backends
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-01-28 07:35:27 -0500
committerTim Graham <timograham@gmail.com>2015-02-06 08:16:28 -0500
commit0ed7d155635da9f79d4dd67e4889087d3673c6da (patch)
treecf5c59b563f01774f32e20b3af8cb24a387fdc4d /tests/template_backends
parent388d986b8a6bb1363dab9f53ea435dff4dfe92cb (diff)
downloaddjango-0ed7d155635da9f79d4dd67e4889087d3673c6da.tar.gz
Sorted imports with isort; refs #23860.
Diffstat (limited to 'tests/template_backends')
-rw-r--r--tests/template_backends/test_django.py6
-rw-r--r--tests/template_backends/test_jinja2.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/template_backends/test_django.py b/tests/template_backends/test_django.py
index 2aaf6b57d8..a8cc0d58b8 100644
--- a/tests/template_backends/test_django.py
+++ b/tests/template_backends/test_django.py
@@ -1,10 +1,10 @@
+from template_tests.test_response import test_processor_name
+
from django.template import RequestContext
from django.template.backends.django import DjangoTemplates
-from django.test import ignore_warnings, RequestFactory
+from django.test import RequestFactory, ignore_warnings
from django.utils.deprecation import RemovedInDjango20Warning
-from template_tests.test_response import test_processor_name
-
from .test_dummy import TemplateStringsTests
diff --git a/tests/template_backends/test_jinja2.py b/tests/template_backends/test_jinja2.py
index 1442f25e02..5f69669446 100644
--- a/tests/template_backends/test_jinja2.py
+++ b/tests/template_backends/test_jinja2.py
@@ -4,6 +4,8 @@ from __future__ import absolute_import
from unittest import skipIf
+from .test_dummy import TemplateStringsTests
+
try:
import jinja2
except ImportError:
@@ -12,8 +14,6 @@ except ImportError:
else:
from django.template.backends.jinja2 import Jinja2
-from .test_dummy import TemplateStringsTests
-
@skipIf(jinja2 is None, "this test requires jinja2")
class Jinja2Tests(TemplateStringsTests):