test: check that explanation message isn't forwarded to outsider

This commit is contained in:
missytake 2023-10-25 00:06:38 +02:00
parent 113b3530c7
commit 5d10618d19

View file

@ -102,6 +102,11 @@ def test_relay_group_forwarding(relaycrew, outsider):
user_second_message_from_outsider = user.wait_next_incoming_message() user_second_message_from_outsider = user.wait_next_incoming_message()
assert user_second_message_from_outsider.chat == user_relay_group assert user_second_message_from_outsider.chat == user_relay_group
# check that relay group explanation is not forwarded to outsider
for chat in outsider.get_chats():
for msg in chat.get_messages():
assert "This is the relay group for" not in msg.text
def test_default_outside_help(relaycrew, outsider): def test_default_outside_help(relaycrew, outsider):
bot = relaycrew.bot bot = relaycrew.bot