python: Reformat with Black, except quotes.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-11 23:19:30 -08:00
committed by Tim Abbott
parent 5028c081cb
commit 11741543da
817 changed files with 44952 additions and 24860 deletions

View File

@@ -96,10 +96,13 @@ class GiteaHookTests(WebhookTestCase):
self.check_webhook("issue_comment__edited", expected_topic, expected_message)
@patch('zerver.webhooks.gogs.view.check_send_webhook_message')
def test_push_filtered_by_branches_ignore(self, check_send_webhook_message_mock: MagicMock) -> None:
def test_push_filtered_by_branches_ignore(
self, check_send_webhook_message_mock: MagicMock
) -> None:
self.url = self.build_webhook_url(branches='changes,development')
payload = self.get_body('push__5_commits')
result = self.client_post(self.url, payload, HTTP_X_GITEA_EVENT='push',
content_type="application/json")
result = self.client_post(
self.url, payload, HTTP_X_GITEA_EVENT='push', content_type="application/json"
)
self.assertFalse(check_send_webhook_message_mock.called)
self.assert_json_success(result)