Run mypy on zerver/lib/test_events.py.

This commit is contained in:
Tim Abbott
2016-06-02 23:00:04 -07:00
parent e6d2b0cdbc
commit 8cef9675c8
2 changed files with 3 additions and 2 deletions

View File

@@ -21,7 +21,6 @@ zerver/lib/request.py
zerver/migrations/ zerver/migrations/
zerver/tests/test_bugdown.py zerver/tests/test_bugdown.py
zerver/tests/tests.py zerver/tests/tests.py
zerver/tests/test_events.py
zerver/tests/test_email_mirror.py zerver/tests/test_email_mirror.py
zerver/tests/test_decorators.py zerver/tests/test_decorators.py
zerver/tests/test_auth_backends.py zerver/tests/test_auth_backends.py

View File

@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import from __future__ import absolute_import
from typing import Optional
from django.test import TestCase from django.test import TestCase
from zerver.models import ( from zerver.models import (
@@ -196,7 +198,7 @@ class GetEventsTest(AuthedTestCase):
class EventsRegisterTest(AuthedTestCase): class EventsRegisterTest(AuthedTestCase):
user_profile = get_user_profile_by_email("hamlet@zulip.com") user_profile = get_user_profile_by_email("hamlet@zulip.com")
bot = get_user_profile_by_email("welcome-bot@zulip.com") bot = get_user_profile_by_email("welcome-bot@zulip.com")
maxDiff = None maxDiff = None # type: Optional[int]
def create_bot(self, email): def create_bot(self, email):
return do_create_user(email, '123', return do_create_user(email, '123',