Prepare for Bot API 6.8

This commit is contained in:
Alex Root Junior 2023-08-14 22:44:36 +03:00
parent 577b44cdc1
commit 81b6465340
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
26 changed files with 374 additions and 27 deletions

View file

@ -0,0 +1,15 @@
from aiogram.methods import Request, UnpinAllForumTopicMessages, UnpinAllGeneralForumTopicMessages
from tests.mocked_bot import MockedBot
class TestUnpinAllForumTopicMessages:
async def test_bot_method(self, bot: MockedBot):
prepare_result = bot.add_result_for(
UnpinAllGeneralForumTopicMessages, ok=True, result=True
)
response: bool = await bot.unpin_all_general_forum_topic_messages(
chat_id=42,
)
request = bot.get_request()
assert response == prepare_result.result