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.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/auth_tests/test_management.py b/tests/auth_tests/test_management.py
index 9f12e631cc..0701ac2d68 100644
--- a/tests/auth_tests/test_management.py
+++ b/tests/auth_tests/test_management.py
@@ -200,7 +200,10 @@ class ChangepasswordManagementCommandTestCase(TestCase):
@mock.patch.object(changepassword.Command, "_get_pass", return_value="not qwerty")
def test_that_changepassword_command_changes_joes_password(self, mock_get_pass):
- "Executing the changepassword management command should change joe's password"
+ """
+ Executing the changepassword management command should change joe's
+ password
+ """
self.assertTrue(self.user.check_password("qwerty"))
call_command("changepassword", username="joe", stdout=self.stdout)
@@ -413,7 +416,10 @@ class CreatesuperuserManagementCommandTestCase(TestCase):
@override_settings(AUTH_USER_MODEL="auth_tests.CustomUser")
def test_swappable_user_missing_required_field(self):
- "A Custom superuser won't be created when a required field isn't provided"
+ """
+ A Custom superuser won't be created when a required field isn't
+ provided
+ """
# We can use the management command to create a superuser
# We skip validation because the temporary substitution of the
# swappable User model messes with validation.