From e6d2b0cdbce7c9cb0e693bbae3e5915322b227de Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 2 Jun 2016 22:59:00 -0700 Subject: [PATCH] Run mypy on zerver/lib/test_unread.py. --- tools/run-mypy | 1 - zerver/tests/test_unread.py | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/run-mypy b/tools/run-mypy index b306640aab..d0c6464602 100755 --- a/tools/run-mypy +++ b/tools/run-mypy @@ -21,7 +21,6 @@ zerver/lib/request.py zerver/migrations/ zerver/tests/test_bugdown.py zerver/tests/tests.py -zerver/tests/test_unread.py zerver/tests/test_events.py zerver/tests/test_email_mirror.py zerver/tests/test_decorators.py diff --git a/zerver/tests/test_unread.py b/zerver/tests/test_unread.py index f5c847c874..b7d5d717bb 100644 --- a/zerver/tests/test_unread.py +++ b/zerver/tests/test_unread.py @@ -1,6 +1,8 @@ # -*- coding: utf-8 -*-AA from __future__ import absolute_import +from typing import Any, Dict, List + from zerver.models import ( get_user_profile_by_email, Recipient, UserMessage ) @@ -145,7 +147,7 @@ class UnreadCountTests(AuthedTestCase): message_id = self.send_message("hamlet@zulip.com", "test_stream", Recipient.STREAM, "hello") unrelated_message_id = self.send_message("hamlet@zulip.com", "Denmark", Recipient.STREAM, "hello") - events = [] + events = [] # type: List[Dict[str, Any]] with tornado_redirected_to_list(events): result = self.client.post("/json/messages/flags", {"messages": ujson.dumps([]), "op": "add", @@ -194,7 +196,7 @@ class UnreadCountTests(AuthedTestCase): message_id = self.send_message("hamlet@zulip.com", "test_stream", Recipient.STREAM, "hello", "test_topic") unrelated_message_id = self.send_message("hamlet@zulip.com", "Denmark", Recipient.STREAM, "hello", "Denmark2") - events = [] + events = [] # type: List[Dict[str, Any]] with tornado_redirected_to_list(events): result = self.client.post("/json/messages/flags", {"messages": ujson.dumps([]), "op": "add",