mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
python: Reformat with Black, except quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5028c081cb
commit
11741543da
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user