mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
Improve Some Unit Tests (#3026)
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
This commit is contained in:
parent
de28f177bd
commit
d6e95f1974
2 changed files with 3 additions and 3 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 isinstance(new_file.file_id, str) and new_file.file_id != ""
|
assert new_file.file_unique_id == chat_photo.small_file_unique_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 isinstance(new_file.file_id, str) and new_file.file_id != ""
|
assert new_file.file_unique_id == chat_photo.big_file_unique_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)
|
||||||
|
|
|
@ -44,7 +44,7 @@ class TestInlineKeyboardButton:
|
||||||
switch_inline_query = "switch_inline_query"
|
switch_inline_query = "switch_inline_query"
|
||||||
switch_inline_query_current_chat = "switch_inline_query_current_chat"
|
switch_inline_query_current_chat = "switch_inline_query_current_chat"
|
||||||
callback_game = CallbackGame()
|
callback_game = CallbackGame()
|
||||||
pay = "pay"
|
pay = True
|
||||||
login_url = LoginUrl("http://google.com")
|
login_url = LoginUrl("http://google.com")
|
||||||
web_app = WebAppInfo(url="https://example.com")
|
web_app = WebAppInfo(url="https://example.com")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue