mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
Update tests
This commit is contained in:
parent
ffb0cdf88f
commit
d2d4f337fb
16 changed files with 170 additions and 40 deletions
|
|
@ -9,7 +9,7 @@ class TestUploadStickerFile:
|
|||
@pytest.mark.asyncio
|
||||
async def test_method(self, bot: MockedBot):
|
||||
prepare_result = bot.add_result_for(
|
||||
UploadStickerFile, ok=True, result=File(file_id="file id")
|
||||
UploadStickerFile, ok=True, result=File(file_id="file id", file_unique_id="file id")
|
||||
)
|
||||
|
||||
response: File = await UploadStickerFile(
|
||||
|
|
@ -22,7 +22,7 @@ class TestUploadStickerFile:
|
|||
@pytest.mark.asyncio
|
||||
async def test_bot_method(self, bot: MockedBot):
|
||||
prepare_result = bot.add_result_for(
|
||||
UploadStickerFile, ok=True, result=File(file_id="file id")
|
||||
UploadStickerFile, ok=True, result=File(file_id="file id", file_unique_id="file id")
|
||||
)
|
||||
|
||||
response: File = await bot.upload_sticker_file(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue