python: Sort webhooks imports with isort.

This commit is contained in:
Tim Abbott
2020-01-14 13:06:24 -08:00
parent 8e7ce7cc79
commit c10cc24ee8
129 changed files with 238 additions and 180 deletions

View File

@@ -3,6 +3,7 @@ from mock import MagicMock, patch
from zerver.lib.test_classes import WebhookTestCase
class GiteaHookTests(WebhookTestCase):
STREAM_NAME = 'commits'
URL_TEMPLATE = "/api/v1/external/giteae?&api_key={api_key}&stream={stream}"

View File

@@ -12,7 +12,6 @@ from zerver.models import UserProfile
# Gitea is a fork of Gogs, and so the webhook implementation is nearly the same.
from zerver.webhooks.gogs.view import gogs_webhook_main
fixture_to_headers = get_http_headers_from_filename("HTTP_X_GITEA_EVENT")
def format_pull_request_event(payload: Dict[str, Any],