hebdobot/tests/test_bot.py

13 lines
368 B
Python
Raw Normal View History

from tests.utils import bot, OWNER, SENDER
2024-01-11 08:17:25 +01:00
def test_private_message(bot):
bot.test_private_message(bot.channel, SENDER, "hello")
2024-01-11 08:17:25 +01:00
assert len(bot.answers) == 0
def test_private_command(bot):
bot.test_private_message(bot.channel, SENDER, "!hello")
2024-01-11 08:17:25 +01:00
assert len(bot.answers) == 1
assert bot.answers[0].message == "Vos commandes dans le salon public"