2018-06-08 17:30:50 -04:00
|
|
|
from zulip_bots.test_lib import BotTestCase, DefaultTests
|
2017-05-27 17:57:15 -04:00
|
|
|
|
2017-12-07 14:44:42 -05:00
|
|
|
from typing import Any
|
|
|
|
|
2018-06-08 17:30:50 -04:00
|
|
|
class TestHelpBot(BotTestCase, DefaultTests):
|
2017-05-27 17:57:15 -04:00
|
|
|
bot_name = "help"
|
|
|
|
|
2017-12-08 11:39:59 -05:00
|
|
|
def test_bot(self) -> None:
|
2017-11-30 16:06:26 -05:00
|
|
|
help_text = "Info on Zulip can be found here:\nhttps://github.com/zulip/zulip"
|
|
|
|
requests = ["", "help", "Hi, my name is abc"]
|
|
|
|
|
|
|
|
dialog = [
|
|
|
|
(request, help_text)
|
|
|
|
for request in requests
|
|
|
|
]
|
|
|
|
|
|
|
|
self.verify_dialog(dialog)
|