mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
chore: mark expected warnings
This commit is contained in:
parent
54bd29c805
commit
c5e3afa0ca
2 changed files with 26 additions and 12 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue