mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-08 19:34:12 +01:00
Adapt Tests to Changed Bot.get_file
Behavior (#2995)
This commit is contained in:
parent
335772568f
commit
62cbd11f14
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ class TestChatPhoto:
|
||||||
|
|
||||||
new_file = await bot.get_file(chat_photo.small_file_id)
|
new_file = await bot.get_file(chat_photo.small_file_id)
|
||||||
|
|
||||||
assert new_file.file_id == chat_photo.small_file_id
|
assert isinstance(new_file.file_id, str) and new_file.file_id != ''
|
||||||
assert new_file.file_path.startswith('https://')
|
assert new_file.file_path.startswith('https://')
|
||||||
|
|
||||||
await new_file.download(jpg_file)
|
await new_file.download(jpg_file)
|
||||||
|
@ -92,7 +92,7 @@ class TestChatPhoto:
|
||||||
|
|
||||||
new_file = await bot.get_file(chat_photo.big_file_id)
|
new_file = await bot.get_file(chat_photo.big_file_id)
|
||||||
|
|
||||||
assert new_file.file_id == chat_photo.big_file_id
|
assert isinstance(new_file.file_id, str) and new_file.file_id != ''
|
||||||
assert new_file.file_path.startswith('https://')
|
assert new_file.file_path.startswith('https://')
|
||||||
|
|
||||||
await new_file.download(jpg_file)
|
await new_file.download(jpg_file)
|
||||||
|
|
Loading…
Reference in a new issue