diff --git a/tools/run-mypy b/tools/run-mypy index 75d26b5..e5847a2 100755 --- a/tools/run-mypy +++ b/tools/run-mypy @@ -22,7 +22,6 @@ exclude = """ zulip/integrations/perforce/git_p4.py zulip_bots/zulip_bots/bots -zulip_bots/zulip_bots/test_run.py zulip_bots/zulip_bots/zulip_bot_output.py zulip_botserver/tests/__init__.py diff --git a/zulip_bots/zulip_bots/test_run.py b/zulip_bots/zulip_bots/test_run.py index 6871e60..3984934 100644 --- a/zulip_bots/zulip_bots/test_run.py +++ b/zulip_bots/zulip_bots/test_run.py @@ -26,6 +26,7 @@ class TestDefaultArguments(TestCase): @patch('sys.argv', ['zulip-run-bot', 'giphy', '--config-file', '/foo/bar/baz.conf']) @patch('zulip_bots.run.run_message_handler_for_bot') def test_argument_parsing_with_bot_name(self, mock_run_message_handler_for_bot): + # type: (mock.Mock) -> None zulip_bots.run.main() mock_run_message_handler_for_bot.assert_called_with(bot_name='giphy', config_file='/foo/bar/baz.conf', @@ -35,6 +36,7 @@ class TestDefaultArguments(TestCase): @patch('sys.argv', ['zulip-run-bot', path_to_bot, '--config-file', '/foo/bar/baz.conf']) @patch('zulip_bots.run.run_message_handler_for_bot') def test_argument_parsing_with_bot_path(self, mock_run_message_handler_for_bot): + # type: (mock.Mock) -> None zulip_bots.run.main() mock_run_message_handler_for_bot.assert_called_with( bot_name='giphy',