summaryrefslogtreecommitdiff
path: root/tests/auth_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-02-12 11:36:46 -0500
committerTim Graham <timograham@gmail.com>2016-02-12 13:01:25 -0500
commit004ba0f99eb25c3f32aa3a41707534e955d1878e (patch)
tree74273e902b824f7288eac57ba961cbd4b572223c /tests/auth_tests
parent36f1f5cfb008c465f372389080cdd92671a6cab7 (diff)
downloaddjango-004ba0f99eb25c3f32aa3a41707534e955d1878e.tar.gz
Removed unneeded hint=None/obj=None in system check messages.
Diffstat (limited to 'tests/auth_tests')
-rw-r--r--tests/auth_tests/test_management.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/tests/auth_tests/test_management.py b/tests/auth_tests/test_management.py
index 4183c96c8e..a6deb6454a 100644
--- a/tests/auth_tests/test_management.py
+++ b/tests/auth_tests/test_management.py
@@ -584,7 +584,6 @@ class CustomUserModelValidationTestCase(SimpleTestCase):
expected = [
checks.Error(
"'REQUIRED_FIELDS' must be a list or tuple.",
- hint=None,
obj=CustomUserNonListRequiredFields,
id='auth.E001',
),
@@ -606,9 +605,8 @@ class CustomUserModelValidationTestCase(SimpleTestCase):
errors = checks.run_checks(apps.get_app_configs())
expected = [
checks.Error(
- ("The field named as the 'USERNAME_FIELD' for a custom user model "
- "must not be included in 'REQUIRED_FIELDS'."),
- hint=None,
+ "The field named as the 'USERNAME_FIELD' for a custom user model "
+ "must not be included in 'REQUIRED_FIELDS'.",
obj=CustomUserBadRequiredFields,
id='auth.E002',
),
@@ -625,9 +623,8 @@ class CustomUserModelValidationTestCase(SimpleTestCase):
errors = checks.run_checks()
expected = [
checks.Error(
- ("'CustomUserNonUniqueUsername.username' must be "
- "unique because it is named as the 'USERNAME_FIELD'."),
- hint=None,
+ "'CustomUserNonUniqueUsername.username' must be "
+ "unique because it is named as the 'USERNAME_FIELD'.",
obj=CustomUserNonUniqueUsername,
id='auth.E003',
),
@@ -637,10 +634,9 @@ class CustomUserModelValidationTestCase(SimpleTestCase):
errors = checks.run_checks()
expected = [
checks.Warning(
- ("'CustomUserNonUniqueUsername.username' is named as "
- "the 'USERNAME_FIELD', but it is not unique."),
- hint=('Ensure that your authentication backend(s) can handle '
- 'non-unique usernames.'),
+ "'CustomUserNonUniqueUsername.username' is named as "
+ "the 'USERNAME_FIELD', but it is not unique.",
+ hint='Ensure that your authentication backend(s) can handle non-unique usernames.',
obj=CustomUserNonUniqueUsername,
id='auth.W004',
)