summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_management.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auth_tests/test_management.py')
-rw-r--r--tests/auth_tests/test_management.py26
1 files changed, 20 insertions, 6 deletions
diff --git a/tests/auth_tests/test_management.py b/tests/auth_tests/test_management.py
index 72d4d9a251..49a64edf50 100644
--- a/tests/auth_tests/test_management.py
+++ b/tests/auth_tests/test_management.py
@@ -202,7 +202,8 @@ class ChangepasswordManagementCommandTestCase(TestCase):
self.assertEqual(
command_output,
- "Changing password for user 'joe'\nPassword changed successfully for user 'joe'",
+ "Changing password for user 'joe'\n"
+ "Password changed successfully for user 'joe'",
)
self.assertTrue(User.objects.get(username="joe").check_password("not qwerty"))
@@ -267,7 +268,8 @@ class MultiDBChangepasswordManagementCommandTestCase(TestCase):
self.assertEqual(
command_output,
- "Changing password for user 'joe'\nPassword changed successfully for user 'joe'",
+ "Changing password for user 'joe'\n"
+ "Password changed successfully for user 'joe'",
)
self.assertTrue(
User.objects.using("other").get(username="joe").check_password("not qwerty")
@@ -748,7 +750,10 @@ class CreatesuperuserManagementCommandTestCase(TestCase):
@override_settings(
AUTH_PASSWORD_VALIDATORS=[
{
- "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
+ "NAME": (
+ "django.contrib.auth.password_validation."
+ "UserAttributeSimilarityValidator"
+ )
},
]
)
@@ -793,7 +798,10 @@ class CreatesuperuserManagementCommandTestCase(TestCase):
AUTH_USER_MODEL="auth_tests.CustomUser",
AUTH_PASSWORD_VALIDATORS=[
{
- "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
+ "NAME": (
+ "django.contrib.auth.password_validation."
+ "UserAttributeSimilarityValidator"
+ )
},
],
)
@@ -840,7 +848,10 @@ class CreatesuperuserManagementCommandTestCase(TestCase):
AUTH_USER_MODEL="auth_tests.CustomUser",
AUTH_PASSWORD_VALIDATORS=[
{
- "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
+ "NAME": (
+ "django.contrib.auth.password_validation."
+ "UserAttributeSimilarityValidator"
+ )
},
],
)
@@ -1057,7 +1068,10 @@ class CreatesuperuserManagementCommandTestCase(TestCase):
stdout=new_io,
stderr=new_io,
)
- msg = "Error: That username is already taken.\nSuperuser created successfully."
+ msg = (
+ "Error: That username is already taken.\n"
+ "Superuser created successfully."
+ )
self.assertEqual(new_io.getvalue().strip(), msg)
test(self)