diff options
| author | Simon Charette <charette.s@gmail.com> | 2015-04-17 17:38:20 -0400 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2015-05-20 13:46:13 -0400 |
| commit | be67400b477c1b0e7e81766f41bbceed0de74bdc (patch) | |
| tree | fd8e6d087082754df9159a5549bfa80e2a8c57d9 /tests/auth_tests | |
| parent | e2b77aceddbda9071fcfc38f90fb50d091d0b5fc (diff) | |
Refs #24652 -- Used SimpleTestCase where appropriate.
Diffstat (limited to 'tests/auth_tests')
| -rw-r--r-- | tests/auth_tests/test_auth_backends.py | 6 | ||||
| -rw-r--r-- | tests/auth_tests/test_context_processors.py | 4 | ||||
| -rw-r--r-- | tests/auth_tests/test_forms.py | 4 | ||||
| -rw-r--r-- | tests/auth_tests/test_management.py | 6 |
4 files changed, 12 insertions, 8 deletions
diff --git a/tests/auth_tests/test_auth_backends.py b/tests/auth_tests/test_auth_backends.py index 1977494a24..6a642aaba6 100644 --- a/tests/auth_tests/test_auth_backends.py +++ b/tests/auth_tests/test_auth_backends.py @@ -12,7 +12,9 @@ from django.contrib.auth.tests.custom_user import CustomUser, ExtensionUser from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ImproperlyConfigured, PermissionDenied from django.http import HttpRequest -from django.test import TestCase, modify_settings, override_settings +from django.test import ( + SimpleTestCase, TestCase, modify_settings, override_settings, +) from .models import CustomPermissionsUser, UUIDUser @@ -394,7 +396,7 @@ class RowlevelBackendTest(TestCase): @override_settings( AUTHENTICATION_BACKENDS=['auth_tests.test_auth_backends.SimpleRowlevelBackend'], ) -class AnonymousUserBackendTest(TestCase): +class AnonymousUserBackendTest(SimpleTestCase): """ Tests for AnonymousUser delegating to backend. """ diff --git a/tests/auth_tests/test_context_processors.py b/tests/auth_tests/test_context_processors.py index 5f91fd1e0a..e76c8df004 100644 --- a/tests/auth_tests/test_context_processors.py +++ b/tests/auth_tests/test_context_processors.py @@ -5,7 +5,7 @@ from django.contrib.auth.context_processors import PermLookupDict, PermWrapper from django.contrib.auth.models import Permission, User from django.contrib.contenttypes.models import ContentType from django.db.models import Q -from django.test import TestCase, override_settings +from django.test import SimpleTestCase, TestCase, override_settings from .settings import AUTH_MIDDLEWARE_CLASSES, AUTH_TEMPLATES @@ -22,7 +22,7 @@ class MockUser(object): return False -class PermWrapperTests(TestCase): +class PermWrapperTests(SimpleTestCase): """ Test some details of the PermWrapper implementation. """ diff --git a/tests/auth_tests/test_forms.py b/tests/auth_tests/test_forms.py index 28dca7b3a1..2595cd7540 100644 --- a/tests/auth_tests/test_forms.py +++ b/tests/auth_tests/test_forms.py @@ -14,7 +14,7 @@ from django.contrib.sites.models import Site from django.core import mail from django.core.mail import EmailMultiAlternatives from django.forms.fields import CharField, Field -from django.test import TestCase, override_settings +from django.test import SimpleTestCase, TestCase, override_settings from django.utils import translation from django.utils.encoding import force_text from django.utils.text import capfirst @@ -553,7 +553,7 @@ class PasswordResetFormTest(TestDataMixin, TestCase): ) -class ReadOnlyPasswordHashTest(TestCase): +class ReadOnlyPasswordHashTest(SimpleTestCase): def test_bug_19349_render_with_none_value(self): # Rendering the widget with value set to None diff --git a/tests/auth_tests/test_management.py b/tests/auth_tests/test_management.py index d3b2ff18c5..e9c6105496 100644 --- a/tests/auth_tests/test_management.py +++ b/tests/auth_tests/test_management.py @@ -17,7 +17,9 @@ from django.contrib.contenttypes.models import ContentType from django.core import checks, exceptions from django.core.management import call_command from django.core.management.base import CommandError -from django.test import TestCase, override_settings, override_system_checks +from django.test import ( + SimpleTestCase, TestCase, override_settings, override_system_checks, +) from django.utils import six from django.utils.encoding import force_str from django.utils.translation import ugettext_lazy as _ @@ -415,7 +417,7 @@ class CreatesuperuserManagementCommandTestCase(TestCase): test(self) -class CustomUserModelValidationTestCase(TestCase): +class CustomUserModelValidationTestCase(SimpleTestCase): @override_settings(AUTH_USER_MODEL='auth.CustomUserNonListRequiredFields') @override_system_checks([check_user_model]) def test_required_fields_is_list(self): |
