From d6e95f1974ae2c3f9c1810307b892cc78463d235 Mon Sep 17 00:00:00 2001 From: Poolitzer Date: Thu, 9 Jun 2022 17:07:28 +0200 Subject: [PATCH] Improve Some Unit Tests (#3026) Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com> --- tests/test_chatphoto.py | 4 ++-- tests/test_inlinekeyboardbutton.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_chatphoto.py b/tests/test_chatphoto.py index 94176011e..7d01f49fd 100644 --- a/tests/test_chatphoto.py +++ b/tests/test_chatphoto.py @@ -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) diff --git a/tests/test_inlinekeyboardbutton.py b/tests/test_inlinekeyboardbutton.py index 2cf7542ff..c89342692 100644 --- a/tests/test_inlinekeyboardbutton.py +++ b/tests/test_inlinekeyboardbutton.py @@ -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")