mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
zerver/webhooks: Change use of typing.Text to str.
This commit is contained in:
committed by
Tim Abbott
parent
e8506b5020
commit
64ddfc6ac0
@@ -1,5 +1,3 @@
|
||||
from typing import Text
|
||||
|
||||
from zerver.lib.test_classes import WebhookTestCase
|
||||
|
||||
class IntercomWebHookTests(WebhookTestCase):
|
||||
@@ -17,5 +15,5 @@ class IntercomWebHookTests(WebhookTestCase):
|
||||
self.send_and_test_stream_message('user_created', expected_subject, expected_message,
|
||||
content_type="application/x-www-form-urlencoded")
|
||||
|
||||
def get_body(self, fixture_name: Text) -> Text:
|
||||
def get_body(self, fixture_name: str) -> str:
|
||||
return self.webhook_fixture_data('intercom', fixture_name, file_type="json")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, Text
|
||||
from typing import Any, Dict
|
||||
|
||||
from django.http import HttpRequest, HttpResponse
|
||||
|
||||
|
||||
Reference in New Issue
Block a user