From 8f8f0cb5f1b15892e884112af2a8a89fd29f1c16 Mon Sep 17 00:00:00 2001 From: Oleg A Date: Mon, 18 Sep 2023 15:25:45 +0300 Subject: [PATCH] chore: mark expected warnings --- tests/test_dispatcher/test_dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_dispatcher/test_dispatcher.py b/tests/test_dispatcher/test_dispatcher.py index 730a59b2..b85cfc98 100644 --- a/tests/test_dispatcher/test_dispatcher.py +++ b/tests/test_dispatcher/test_dispatcher.py @@ -187,7 +187,7 @@ class TestDispatcher: async def test_process_update_empty(self, bot: MockedBot): dispatcher = Dispatcher() - with pytest.warns(RuntimeWarning, match="Detected unknown update type"): + with pytest.warns(RuntimeWarning, match="Detected unknown update type") as record: result = await dispatcher._process_update(bot=bot, update=Update(update_id=42)) assert not result