From 1b275e248f5b11572c9df88e6786c34f3c3ead1e Mon Sep 17 00:00:00 2001 From: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com> Date: Tue, 2 Apr 2024 21:41:24 +0200 Subject: [PATCH] Temporarily Mark Tests with `get_sticker_set` as XFAIL due to API 7.2 Update --- tests/_files/test_sticker.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/_files/test_sticker.py b/tests/_files/test_sticker.py index 86a2da710c0..3cc8c584dc4 100644 --- a/tests/_files/test_sticker.py +++ b/tests/_files/test_sticker.py @@ -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. @@ -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 @@ -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: @@ -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: @@ -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 @@ -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}" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy