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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

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)

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")