mypy: zulip_bots: Annotate zulip_bots/test_run.py.
This commit is contained in:
parent
afb9886553
commit
5e7f4c595f
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue