Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
outgoing webhook tests: Remove dead code.
Steve Howellfb2a69ec78b3
diff --git a/zerver/tests/test_outgoing_webhook_system.py b/zerver/tests/test_outgoing_webhook_system.pyindex dc0ec4e4e7a..c1b04f36cf8 100644--- a/zerver/tests/test_outgoing_webhook_system.py+++ b/zerver/tests/test_outgoing_webhook_system.py@@ -81,7 +81,6 @@ class DoRestCallTests(ZulipTestCase):def test_retry_request(self) -> None:response = ResponseMock(500)- self.mock_event['failed_tries'] = 3with mock.patch('requests.request', return_value=response), mock.patch('logging.warning'):do_rest_call('', None, self.mock_event, self.service_handler)@@ -92,7 +91,6 @@ The webhook got a response with status code *500*.''')assert self.bot_user.bot_owner is not Noneself.assertEqual(bot_owner_notification.recipient_id, self.bot_user.bot_owner.id)- self.mock_event['failed_tries'] = 0def test_fail_request(self) -> None:response = ResponseMock(400)