mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 22:19:48 +00:00
Run mypy on zerver/lib/test_events.py.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user