8000 Temporarily Mark Tests with `get_sticker_set` as XFAIL due to API 7.2 Update by Bibo-Joshi · Pull Request #4190 · python-telegram-bot/python-telegram-bot · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/_files/test_sticker.py
8000
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ async def test_send_sticker_default_protect_content(self, chat_id, sticker, defa
assert protected.has_protected_content
assert not unprotected.has_protected_content

@pytest.mark.xfail(reason="API 7.2 incompatibility, see #4181")
async def test_premium_animation(self, bot):
# testing animation sucks a bit since we can't create a premium sticker. What we can do is
# get a sticker set which includes a premium sticker and check that specific one.
Expand All @@ -488,6 +489,7 @@ async def test_premium_animation(self, bot):
}
assert premium_sticker.premium_animation.to_dict() == premium_sticker_dict

@pytest.mark.xfail(reason="API 7.2 incompatibility, see #4181")
async def test_custom_emoji(self, bot):
# testing custom emoji stickers is as much of an annoyance as the premium animation, see
# in test_premium_animation
Expand Down Expand Up @@ -526,6 +528,7 @@ async def test_error_send_empty_file_id(self, bot, chat_id):

@pytest.fixture()
async def sticker_set(bot):
pytest.xfail(reason="API 7.2 incompatibility, see #4181")
ss = await bot.get_sticker_set(f"test_by_{bot.username}")
if len(ss.stickers) > 100:
try:
Expand All @@ -540,6 +543,7 @@ async def sticker_set(bot):

@pytest.fixture()
async def animated_sticker_set(bot):
pytest.xfail(reason="API 7.2 incompatibility, see #4181")
ss = await bot.get_sticker_set(f"animated_test_by_{bot.username}")
if len(ss.stickers) > 100:
try:
Expand Down Expand Up @@ -796,6 +800,7 @@ async def make_assertion(*_, **kwargs):


@pytest.mark.xdist_group("stickerset")
@pytest.mark.xfail(reason="API 7.2 incompatibility, see #4181")
class TestStickerSetWithRequest:
async def test_create_sticker_set(
self, bot, chat_id, sticker_file, animated_sticker_file, video_sticker_file
Expand Down Expand Up @@ -1107,6 +1112,7 @@ def test_equality(self):
assert hash(a) != hash(e)


@pytest.mark.xfail(reason="API 7.2 incompatibility, see #4181")
class TestMaskPositionWithRequest(TestMaskPositionBase):
async def test_create_new_mask_sticker_set(self, bot, chat_id, sticker_file, mask_position):
name = f"masks_by_{bot.username}"
Expand Down
0