mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
python: Wrap long def lines in test files.
We don't have our linter checking test files due to ultra-long strings that are often present in test output that we verify. But it's worth at least cleaning out all the ultra-long def lines.
This commit is contained in:
@@ -104,7 +104,8 @@ Time is up!
|
||||
@mock.patch('logging.exception')
|
||||
@mock.patch('requests.request', side_effect=request_exception_error)
|
||||
@mock.patch('zerver.lib.outgoing_webhook.fail_with_message')
|
||||
def test_request_exception(self, mock_fail_with_message: mock.Mock, mock_requests_request: mock.Mock, mock_logger: mock.Mock) -> None:
|
||||
def test_request_exception(self, mock_fail_with_message: mock.Mock,
|
||||
mock_requests_request: mock.Mock, mock_logger: mock.Mock) -> None:
|
||||
do_rest_call(self.rest_operation, None, self.mock_event, service_handler, None)
|
||||
bot_owner_notification = self.get_last_message()
|
||||
self.assertTrue(mock_fail_with_message.called)
|
||||
|
||||
Reference in New Issue
Block a user