python: Normalize quotes with Black.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-11 23:20:45 -08:00
committed by Tim Abbott
parent 11741543da
commit 6e4c3e41dc
989 changed files with 32792 additions and 32792 deletions

View File

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

View File

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