mypy: Fix a few webhook tests to work with strict-optional.

This commit is contained in:
umkay 2017-05-24 20:31:21 -07:00 committed by Tim Abbott
parent d7db7aa84f
commit f4617d0408
2 changed files with 3 additions and 4 deletions

View File

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

View File

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