mirror of https://github.com/zulip/zulip.git
mypy: Fix a few webhook tests to work with strict-optional.
This commit is contained in:
parent
d7db7aa84f
commit
f4617d0408
|
@ -25,7 +25,7 @@ class TransifexHookTests(WebhookTestCase):
|
|||
language=self.LANGUAGE,
|
||||
resource=self.RESOURCE,
|
||||
)
|
||||
self.send_and_test_stream_message(None, expected_subject, expected_message)
|
||||
self.send_and_test_stream_message("", expected_subject, expected_message)
|
||||
|
||||
def test_transifex_translated_message(self):
|
||||
# type: () -> None
|
||||
|
@ -38,8 +38,7 @@ class TransifexHookTests(WebhookTestCase):
|
|||
language=self.LANGUAGE,
|
||||
resource=self.RESOURCE,
|
||||
)
|
||||
self.send_and_test_stream_message(None, expected_subject, expected_message)
|
||||
self.REVIEWED = True
|
||||
self.send_and_test_stream_message("", expected_subject, expected_message)
|
||||
|
||||
def get_body(self, fixture_name):
|
||||
# type: (Text) -> Dict[str, Any]
|
||||
|
|
|
@ -27,7 +27,7 @@ class ZenDeskHookTests(WebhookTestCase):
|
|||
|
||||
def do_test(self, expected_subject=None, expected_message=None):
|
||||
# type: (Optional[Text], Optional[Text]) -> None
|
||||
self.send_and_test_stream_message(None, expected_subject, expected_message,
|
||||
self.send_and_test_stream_message("", expected_subject, expected_message,
|
||||
content_type=None, **self.api_auth(self.TEST_USER_EMAIL))
|
||||
self.TICKET_TITLE = self.DEFAULT_TICKET_TITLE
|
||||
self.TICKET_ID = self.DEFAULT_TICKET_ID
|
||||
|
|
Loading…
Reference in New Issue