mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Bot API 6.6 (#1139)
* Added basic support of Bot API 6.6 * Update descriptions * Added StickerFormat enum * Bump version * Refresh from docs * Fixed CommandStart * Fixed files uploading * Cover new functionality * Added changelog * Update texts
This commit is contained in:
parent
5adaf7a567
commit
6570d0bab1
218 changed files with 7687 additions and 1741 deletions
20
tests/test_api/test_methods/test_delete_sticker_set.py
Normal file
20
tests/test_api/test_methods/test_delete_sticker_set.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
from aiogram.methods import DeleteStickerSet, Request
|
||||
from tests.mocked_bot import MockedBot
|
||||
|
||||
|
||||
class TestDeleteStickerSet:
|
||||
async def test_method(self, bot: MockedBot):
|
||||
prepare_result = bot.add_result_for(DeleteStickerSet, ok=True, result=True)
|
||||
|
||||
response: bool = await DeleteStickerSet(name="test")
|
||||
request: Request = bot.get_request()
|
||||
assert request.method == "deleteStickerSet"
|
||||
assert response == prepare_result.result
|
||||
|
||||
async def test_bot_method(self, bot: MockedBot):
|
||||
prepare_result = bot.add_result_for(DeleteStickerSet, ok=True, result=True)
|
||||
|
||||
response: bool = await bot.delete_sticker_set(name="test")
|
||||
request: Request = bot.get_request()
|
||||
assert request.method == "deleteStickerSet"
|
||||
assert response == prepare_result.result
|
||||
Loading…
Add table
Add a link
Reference in a new issue