From 5d10618d19ad4c924d777a9c4809869e39917863 Mon Sep 17 00:00:00 2001 From: missytake Date: Wed, 25 Oct 2023 00:06:38 +0200 Subject: [PATCH] test: check that explanation message isn't forwarded to outsider --- tests/test_bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_bot.py b/tests/test_bot.py index 124393d..62aa8ec 100644 --- a/tests/test_bot.py +++ b/tests/test_bot.py @@ -102,6 +102,11 @@ def test_relay_group_forwarding(relaycrew, outsider): user_second_message_from_outsider = user.wait_next_incoming_message() 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): bot = relaycrew.bot