
This commit was originally from @fredfishgames, but it needed a big rebase due to use letting it sit too long. Also, we decided not to have shebangs at the top of test files.
18 lines
440 B
Python
Executable file
18 lines
440 B
Python
Executable file
from zulip_bots.test_lib import StubBotTestCase
|
|
|
|
from typing import Any
|
|
|
|
class TestHelpBot(StubBotTestCase):
|
|
bot_name = "help"
|
|
|
|
def test_bot(self) -> None:
|
|
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)
|