zulip_bots: Cleaned up test code for Mention bot.
This commit is contained in:
parent
d62cc1ab58
commit
67b3529140
|
@ -4,31 +4,13 @@ class TestMentionBot(BotTestCase):
|
|||
bot_name = "mention"
|
||||
|
||||
def test_bot_responds_to_empty_message(self) -> None:
|
||||
# Offline query.
|
||||
with self.mock_config_info({'access_token': '12345'}):
|
||||
self.verify_reply('', 'Empty Mention Query')
|
||||
|
||||
def test_help_query(self) -> None:
|
||||
# Offline query.
|
||||
with self.mock_config_info({'access_token': '12345'}):
|
||||
self.verify_reply('help', '''
|
||||
This is a Mention API Bot which will find mentions
|
||||
of the given keyword throughout the web.
|
||||
Version 1.00
|
||||
''')
|
||||
|
||||
# Offline query.
|
||||
with self.mock_config_info({'access_token': '12345'}):
|
||||
self.verify_reply('hElp', '''
|
||||
This is a Mention API Bot which will find mentions
|
||||
of the given keyword throughout the web.
|
||||
Version 1.00
|
||||
''')
|
||||
|
||||
# Offline query.
|
||||
with self.mock_config_info({'access_token': '12345'}):
|
||||
self.verify_reply('HELP', '''
|
||||
This is a Mention API Bot which will find mentions
|
||||
of the given keyword throughout the web.
|
||||
Version 1.00
|
||||
''')
|
||||
|
|
Loading…
Reference in a new issue