mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
python: Normalize quotes with Black.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
11741543da
commit
6e4c3e41dc
@@ -2,7 +2,7 @@ from zerver.lib.test_classes import WebhookTestCase
|
||||
|
||||
|
||||
class StatuspageHookTests(WebhookTestCase):
|
||||
STREAM_NAME = 'statuspage-test'
|
||||
STREAM_NAME = "statuspage-test"
|
||||
URL_TEMPLATE = "/api/v1/external/statuspage?api_key={api_key}&stream={stream}"
|
||||
FIXTURE_DIR_NAME = "statuspage"
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ INCIDENT_TEMPLATE = """
|
||||
|
||||
COMPONENT_TEMPLATE = "**{name}** has changed status from **{old_status}** to **{new_status}**."
|
||||
|
||||
TOPIC_TEMPLATE = '{name}: {description}'
|
||||
TOPIC_TEMPLATE = "{name}: {description}"
|
||||
|
||||
|
||||
def get_incident_events_body(payload: Dict[str, Any]) -> str:
|
||||
@@ -49,12 +49,12 @@ def get_component_topic(payload: Dict[str, Any]) -> str:
|
||||
)
|
||||
|
||||
|
||||
@webhook_view('Statuspage')
|
||||
@webhook_view("Statuspage")
|
||||
@has_request_variables
|
||||
def api_statuspage_webhook(
|
||||
request: HttpRequest,
|
||||
user_profile: UserProfile,
|
||||
payload: Dict[str, Any] = REQ(argument_type='body'),
|
||||
payload: Dict[str, Any] = REQ(argument_type="body"),
|
||||
) -> HttpResponse:
|
||||
|
||||
status = payload["page"]["status_indicator"]
|
||||
|
||||
Reference in New Issue
Block a user