Improve Some Unit Tests (#3026)

Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
This commit is contained in:
Poolitzer
2022-06-09 17:07:28 +02:00
committed by GitHub
parent de28f177bd
commit d6e95f1974
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ class TestChatPhoto:
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://")
await new_file.download(jpg_file)
@@ -92,7 +92,7 @@ class TestChatPhoto:
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://")
await new_file.download(jpg_file)
+1 -1
View File
@@ -44,7 +44,7 @@ class TestInlineKeyboardButton:
switch_inline_query = "switch_inline_query"
switch_inline_query_current_chat = "switch_inline_query_current_chat"
callback_game = CallbackGame()
pay = "pay"
pay = True
login_url = LoginUrl("http://google.com")
web_app = WebAppInfo(url="https://example.com")