chore: mark expected warnings

This commit is contained in:
Oleg A 2023-09-18 15:25:45 +03:00
parent 511dadcb6e
commit 8f8f0cb5f1
No known key found for this signature in database
GPG key ID: 5FE046817A9657C5

View file

@ -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