Adapt Tests to Changed Bot.get_file Behavior (#2995)

This commit is contained in:
Bibo-Joshi 2022-05-05 14:54:36 +02:00 committed by Hinrich Mahler
parent 335772568f
commit 62cbd11f14

View file

@ -83,7 +83,7 @@ class TestChatPhoto:
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://')
await new_file.download(jpg_file)
@ -92,7 +92,7 @@ class TestChatPhoto:
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://')
await new_file.download(jpg_file)