test_messages: Fix remaining mypy errors.

This commit is contained in:
Tim Abbott 2016-07-29 20:53:58 -07:00
parent 88550edd9e
commit 39f1024740
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,6 @@ zerver/tests/test_bugdown.py
zerver/tests/test_email_mirror.py
zerver/tests/test_decorators.py
zerver/tests/test_upload.py
zerver/tests/test_messages.py
zerver/tests/test_narrow.py
""".split()

View File

@ -38,6 +38,7 @@ import DNS
import mock
import time
import ujson
from six import text_type
from six.moves import range
class TestCrossRealmPMs(AuthedTestCase):
@ -909,7 +910,7 @@ class MirroredMessageUsersTest(TestCase):
def test_invalid_sender(self):
user = get_user_profile_by_email('hamlet@zulip.com')
recipients = []
recipients = [] # type: List[text_type]
request = self.Request()
request.POST = dict() # no sender
@ -925,7 +926,7 @@ class MirroredMessageUsersTest(TestCase):
user = get_user_profile_by_email('hamlet@zulip.com')
sender = user
recipients = []
recipients = [] # type: List[text_type]
request = self.Request()
request.POST = dict(
sender=sender.email,