aiogram/tests/test_api/test_methods
Alex Root Junior ec7da0f678
Migrate from Black to Ruff (#1750)
* Migrate from Black to Ruff and reformat code with enabling additional linter checks

* Add changelog for migration to Ruff as formatter and linter

* Add type ignores for specific attributes and replace tuple with set for chat type check

* Remove file from another changes
2026-01-04 21:34:08 +02:00
..
__init__.py Add tests for BaseSession and TelegramAPIServer 2019-11-16 00:52:18 +02:00
test_add_sticker_to_set.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_answer_callback_query.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_answer_inline_query.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_answer_pre_checkout_query.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_answer_shipping_query.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_answer_web_app_query.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_approve_chat_join_request.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_approve_suggested_post.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_ban_chat_member.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_ban_chat_sender_chat.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_base.py Add MediaGroupBuilder for media group construction (#1293) 2023-09-03 00:25:31 +03:00
test_close.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_close_forum_topic.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_close_general_forum_topic.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_convert_gift_to_stars.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_copy_message.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_copy_messages.py Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
test_create_chat_invite_link.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_create_chat_subscruption_invite_link.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_create_forum_topic.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_create_invoice_link.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_create_new_sticker_set.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_decline_chat_join_request.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_decline_suggested_post.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_delete_business_messages.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_delete_chat_photo.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_delete_chat_sticker_set.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_delete_forum_topic.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_delete_message.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_delete_messages.py Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
test_delete_my_commands.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_delete_sticker_from_set.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_delete_sticker_set.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_delete_story.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_delete_webhook.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_edit_chat_invite_link.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_edit_chat_subscruption_invite_link.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_edit_forum_topic.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_edit_general_forum_topic.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_edit_message_caption.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_edit_message_checklist.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_edit_message_live_location.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_edit_message_media.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_edit_message_reply_markup.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_edit_message_text.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_edit_story.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_edit_user_star_subscription.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_export_chat_invite_link.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_forward_message.py Added full support for Bot API 8.0 (#1606) 2024-11-17 23:18:42 +02:00
test_forward_messages.py Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
test_get_available_gifts.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_business_account_gifts.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_business_account_star_balance.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_business_connection.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_chat.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_chat_administrators.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_chat_gifts.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_chat_member.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_chat_member_count.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_chat_menu_button.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_custom_emoji_stickers.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_file.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_forum_topic_icon_stickers.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_game_high_scores.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_me.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_my_commands.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_my_default_administrator_rights.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_my_description.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_my_name.py Added full support for Bot API 8.0 (#1606) 2024-11-17 23:18:42 +02:00
test_get_my_short_description.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_my_star_balance.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_star_transactions.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_sticker_set.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_updates.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_url.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_user_chat_boosts.py Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
test_get_user_gifts.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_user_profile_photos.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_get_webhook_info.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_gift_premium_subscription.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_hide_general_forum_topic.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_leave_chat.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_log_out.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_pin_chat_message.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_post_story.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_promote_chat_member.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_read_business_message.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_refund_star_payment.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_remove_business_account_profile_photo.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_remove_chat_verification.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_remove_user_verification.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_reopen_forum_topic.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_reopen_general_forum_topic.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_replace_sticker_in_set.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_repost_story.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_restrict_chat_member.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_revoke_chat_invite_link.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_save_prepared_inline_message.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_animation.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_audio.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_chat_action.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_checklist.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_contact.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_dice.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_document.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_game.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_gift.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_invoice.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_location.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_media_group.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_message.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_message_draft.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_paid_media.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_photo.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_poll.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_sticker.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_venue.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_video.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_video_note.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_send_voice.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_business_account_bio.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_business_account_gift_settings.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_business_account_name.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_business_account_profile_photo.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_business_account_username.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_chat_administrator_custom_title.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_chat_description.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_chat_menu_button.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_chat_permissions.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_chat_photo.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_chat_sticker_set.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_chat_title.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_custom_emoji_sticker_set_thumbnail.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_game_score.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_message_reaction.py Added support for Bot API 7.0 (#1387) 2023-12-31 01:40:44 +02:00
test_set_my_commands.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_my_default_administrator_rights.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_my_description.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_my_name.py Bot API 6.7 (#1168) 2023-04-22 18:09:59 +03:00
test_set_my_short_description.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_passport_data_errors.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_sticker_emoji_list.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_sticker_keywords.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_sticker_mask_position.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_sticker_position_in_set.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_sticker_set_thumbnail.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_sticker_set_title.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_user_emoji_status.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_set_webhook.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_stop_message_live_location.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_stop_poll.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_transfer_business_account_stars.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_transfer_gift.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_unban_chat_member.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_unban_chat_sender_chat.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_unhide_general_forum_topic.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_unpin_all_chat_messages.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_unpin_all_forum_topic_messages.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_unpin_all_general_forum_topic_messages.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_unpin_chat_message.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_upgrade_gift.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_upload_sticker_file.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_verify_chat.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_verify_user.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00