Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Fix for #4514 - Consolidate sticker set tests to use mixed format sticker sets
Description
This PR refactors the sticker set tests in
tests/_files/test_sticker.pyto simplify and consolidate the test logic. Instead of maintaining separate sticker sets for static, animated, and video formats, the tests now use a single mixed format sticker set that contains stickers in all three formats.Changes Made
Key Improvements
test_bot_methods_1_png→test_bot_methods_1_add_stickers)Test Methods Consolidated
test_bot_methods_1_png,test_bot_methods_1_tgs,test_bot_methods_1_webm→test_bot_methods_1_add_stickerstest_bot_methods_2_png,test_bot_methods_2_tgs,test_bot_methods_2_webm→test_bot_methods_2_positiontest_bot_methods_3_png,test_bot_methods_3_tgs,test_bot_methods_3_webm→test_bot_methods_3_thumbnail+test_bot_methods_3_webm_thumbnailtest_bot_methods_4_png,test_bot_methods_4_tgs,test_bot_methods_4_webm→test_bot_methods_4_deletetest_bot_methods_5_png,test_bot_methods_5_tgs,test_bot_methods_5_webm→test_bot_methods_5_emojitest_bot_methods_6_png,test_bot_methods_6_tgs,test_bot_methods_6_webm→test_bot_methods_6_titletest_bot_methods_7_png,test_bot_methods_7_tgs,test_bot_methods_7_webm→test_bot_methods_7_keywordstest_bot_methods_8_png→test_bot_methods_8_replaceUpdated Fixtures
test_create_sticker_setto create a single mixed sticker set with static, animated, and video formatstest_delete_sticker_setto include both static and animated sticker formatstest_set_custom_emoji_sticker_set_thumbnailto include video sticker formattest_create_new_mask_sticker_setwith descriptive docstringtest_set_sticker_mask_positionwith descriptive docstringFiles Changed
tests/_files/test_sticker.py: Consolidated test methods and updated sticker set fixturesTesting
Checklist
Related Issue
Closes #4514