Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_decorators: Avoid redefinition of variables with a different type.
Zixuan James Li04d4c6a453a6
diff --git a/zerver/tests/test_decorators.py b/zerver/tests/test_decorators.pyindex f88f7da3ba0..c761c2f80e2 100644--- a/zerver/tests/test_decorators.py+++ b/zerver/tests/test_decorators.py@@ -1600,9 +1600,9 @@ class TestInternalNotifyView(ZulipTestCase):with self.settings(SHARED_SECRET="broken"):self.assertFalse(authenticate_notify(request))- with self.assertRaises(AccessDeniedError) as context:+ with self.assertRaises(AccessDeniedError) as access_denied_error:self.internal_notify(True, request)- self.assertEqual(context.exception.http_status_code, 403)+ self.assertEqual(access_denied_error.exception.http_status_code, 403)def test_external_requests(self) -> None:secret = "random"