mirror of
https://github.com/zulip/zulip.git
synced 2025-10-22 20:42:14 +00:00
integrations: Rename IFTTT view function to match conventions.
This commit is contained in:
@@ -536,12 +536,7 @@ WEBHOOK_INTEGRATIONS: list[WebhookIntegration] = [
|
||||
WebhookIntegration("helloworld", ["misc"], display_name="Hello World"),
|
||||
WebhookIntegration("heroku", ["deployment"]),
|
||||
WebhookIntegration("homeassistant", ["misc"], display_name="Home Assistant"),
|
||||
WebhookIntegration(
|
||||
"ifttt",
|
||||
["meta-integration"],
|
||||
function="zerver.webhooks.ifttt.view.api_iftt_app_webhook",
|
||||
display_name="IFTTT",
|
||||
),
|
||||
WebhookIntegration("ifttt", ["meta-integration"], display_name="IFTTT"),
|
||||
WebhookIntegration("insping", ["monitoring"]),
|
||||
WebhookIntegration("intercom", ["customer-support"]),
|
||||
# Avoid collision with jira-plugin's doc "jira/doc.md".
|
||||
|
@@ -5,7 +5,7 @@ class IFTTTHookTests(WebhookTestCase):
|
||||
CHANNEL_NAME = "ifttt"
|
||||
URL_TEMPLATE = "/api/v1/external/ifttt?stream={stream}&api_key={api_key}"
|
||||
WEBHOOK_DIR_NAME = "ifttt"
|
||||
VIEW_FUNCTION_NAME = "api_iftt_app_webhook"
|
||||
VIEW_FUNCTION_NAME = "api_ifttt_webhook"
|
||||
|
||||
def test_ifttt_when_subject_and_body_are_correct(self) -> None:
|
||||
expected_topic_name = "Email sent from email@email.com"
|
||||
|
@@ -13,7 +13,7 @@ from zerver.models import UserProfile
|
||||
|
||||
@webhook_view("IFTTT")
|
||||
@typed_endpoint
|
||||
def api_iftt_app_webhook(
|
||||
def api_ifttt_webhook(
|
||||
request: HttpRequest,
|
||||
user_profile: UserProfile,
|
||||
*,
|
||||
|
Reference in New Issue
Block a user