mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
python: Sort webhooks imports with isort.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from zerver.lib.test_classes import WebhookTestCase
|
||||
|
||||
|
||||
class AnsibletowerHookTests(WebhookTestCase):
|
||||
STREAM_NAME = 'ansibletower'
|
||||
URL_TEMPLATE = "/api/v1/external/ansibletower?api_key={api_key}&stream={stream}"
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import operator
|
||||
from typing import Any, Dict, List
|
||||
|
||||
from django.http import HttpRequest, HttpResponse
|
||||
|
||||
from zerver.lib.webhooks.common import check_send_webhook_message
|
||||
from zerver.decorator import REQ, api_key_only_webhook_view, \
|
||||
has_request_variables
|
||||
from zerver.lib.response import json_success
|
||||
from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view
|
||||
from zerver.lib.webhooks.common import check_send_webhook_message
|
||||
from zerver.models import UserProfile
|
||||
|
||||
import operator
|
||||
|
||||
ANSIBLETOWER_DEFAULT_MESSAGE_TEMPLATE = "{friendly_name}: [#{id} {name}]({url}) {status}."
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user