Skip to content

Commit

Permalink
Revert "Temporarily Mark Tests with get_sticker_set as XFAIL due to…
Browse files Browse the repository at this point in the history
… API 7.2 Update (#4190)"

This reverts commit 7331fff.
  • Loading branch information
Bibo-Joshi committed Apr 2, 2024
1 parent 17b295a commit 6b6fcf5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/_files/test_sticker.py
Expand Up @@ -472,7 +472,6 @@ 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 @@ -490,7 +489,6 @@ 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 @@ -529,7 +527,6 @@ 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 @@ -544,7 +541,6 @@ 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 @@ -803,7 +799,6 @@ 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 @@ -1120,7 +1115,6 @@ 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 comments on commit 6b6fcf5

Please sign in to comment.