integrations: Rename IFTTT view function to match conventions.

This commit is contained in:
Niloth P
2025-10-12 06:03:57 +05:30
committed by Tim Abbott
parent e4ba536eae
commit f33ef8f206
3 changed files with 3 additions and 8 deletions

View File

@@ -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".

View File

@@ -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"

View File

@@ -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,
*,