Skip to content

Commit 5e7f4c5

Browse files
committed
mypy: zulip_bots: Annotate zulip_bots/test_run.py.
1 parent afb9886 commit 5e7f4c5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tools/run-mypy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ exclude = """
2222
zulip/integrations/perforce/git_p4.py
2323
2424
zulip_bots/zulip_bots/bots
25-
zulip_bots/zulip_bots/test_run.py
2625
zulip_bots/zulip_bots/zulip_bot_output.py
2726
2827
zulip_botserver/tests/__init__.py

zulip_bots/zulip_bots/test_run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class TestDefaultArguments(TestCase):
2626
@patch('sys.argv', ['zulip-run-bot', 'giphy', '--config-file', '/foo/bar/baz.conf'])
2727
@patch('zulip_bots.run.run_message_handler_for_bot')
2828
def test_argument_parsing_with_bot_name(self, mock_run_message_handler_for_bot):
29+
# type: (mock.Mock) -> None
2930
zulip_bots.run.main()
3031
mock_run_message_handler_for_bot.assert_called_with(bot_name='giphy',
3132
config_file='/foo/bar/baz.conf',
@@ -35,6 +36,7 @@ def test_argument_parsing_with_bot_name(self, mock_run_message_handler_for_bot):
3536
@patch('sys.argv', ['zulip-run-bot', path_to_bot, '--config-file', '/foo/bar/baz.conf'])
3637
@patch('zulip_bots.run.run_message_handler_for_bot')
3738
def test_argument_parsing_with_bot_path(self, mock_run_message_handler_for_bot):
39+
# type: (mock.Mock) -> None
3840
zulip_bots.run.main()
3941
mock_run_message_handler_for_bot.assert_called_with(
4042
bot_name='giphy',

0 commit comments

Comments
 (0)