diff options
Diffstat (limited to 'tests/check_framework')
| -rw-r--r-- | tests/check_framework/test_model_field_deprecation.py | 2 | ||||
| -rw-r--r-- | tests/check_framework/test_security.py | 5 | ||||
| -rw-r--r-- | tests/check_framework/tests.py | 7 |
3 files changed, 6 insertions, 8 deletions
diff --git a/tests/check_framework/test_model_field_deprecation.py b/tests/check_framework/test_model_field_deprecation.py index a8a987b4cb..ce30803a61 100644 --- a/tests/check_framework/test_model_field_deprecation.py +++ b/tests/check_framework/test_model_field_deprecation.py @@ -1,5 +1,5 @@ -from django.db import models from django.core import checks +from django.db import models from django.test import SimpleTestCase from .tests import IsolateModelsMixin diff --git a/tests/check_framework/test_security.py b/tests/check_framework/test_security.py index 4a72e60029..c62d96f68c 100644 --- a/tests/check_framework/test_security.py +++ b/tests/check_framework/test_security.py @@ -1,11 +1,8 @@ from django.conf import settings +from django.core.checks.security import base, csrf, sessions from django.test import TestCase from django.test.utils import override_settings -from django.core.checks.security import base -from django.core.checks.security import csrf -from django.core.checks.security import sessions - class CheckSessionCookieSecureTest(TestCase): @property diff --git a/tests/check_framework/tests.py b/tests/check_framework/tests.py index d15988b117..167d0087ee 100644 --- a/tests/check_framework/tests.py +++ b/tests/check_framework/tests.py @@ -1,21 +1,22 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -from django.utils.six import StringIO import sys from django.apps import apps from django.conf import settings from django.core import checks from django.core.checks import Error, Warning +from django.core.checks.compatibility.django_1_7_0 import \ + check_1_7_compatibility from django.core.checks.registry import CheckRegistry -from django.core.checks.compatibility.django_1_7_0 import check_1_7_compatibility -from django.core.management.base import CommandError from django.core.management import call_command +from django.core.management.base import CommandError from django.db import models from django.test import TestCase from django.test.utils import override_settings, override_system_checks from django.utils.encoding import force_text +from django.utils.six import StringIO from .models import SimpleModel |
