chore: mark expected warnings

This commit is contained in:
Oleg A 2023-09-18 15:25:45 +03:00
parent 54bd29c805
commit c5e3afa0ca
No known key found for this signature in database
GPG key ID: 5FE046817A9657C5
2 changed files with 26 additions and 12 deletions

View file

@ -72,4 +72,5 @@ class TestDispatchException:
async def handler0(event):
return "Handled"
assert await dp.feed_update(bot, Update(update_id=0)) == "Handled"
with pytest.warns(RuntimeWarning, match="Detected unknown update type"):
assert await dp.feed_update(bot, Update(update_id=0)) == "Handled"