mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
python: Reformat with Ruff formatter.
https://docs.astral.sh/ruff/formatter/ Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
c85b2edbd4
commit
570f3dd447
@@ -7256,9 +7256,7 @@ class LDAPBackendTest(ZulipTestCase):
|
||||
"zproject.backends.ZulipLDAPAuthBackend.get_or_build_user", side_effect=error
|
||||
), mock.patch("django_auth_ldap.backend._LDAPUser._authenticate_user_dn"), self.assertLogs(
|
||||
"django_auth_ldap", "WARNING"
|
||||
) as warn_log, self.assertLogs(
|
||||
"django.request", level="ERROR"
|
||||
):
|
||||
) as warn_log, self.assertLogs("django.request", level="ERROR"):
|
||||
response = self.client_post("/login/", data)
|
||||
self.assertEqual(response.status_code, 500)
|
||||
self.assert_in_response("Configuration error", response)
|
||||
|
Reference in New Issue
Block a user