mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Move prepare_<field> to single module and add tests for default parse_mode
This commit is contained in:
parent
df6a861276
commit
e12aca9046
22 changed files with 165 additions and 100 deletions
|
|
@ -191,6 +191,8 @@ class TestDispatcher:
|
|||
|
||||
def test_run_polling(self, bot: MockedBot):
|
||||
dispatcher = Dispatcher()
|
||||
with patch("aiogram.dispatcher.dispatcher.Dispatcher.start_polling") as patched_start_polling:
|
||||
with patch(
|
||||
"aiogram.dispatcher.dispatcher.Dispatcher.start_polling"
|
||||
) as patched_start_polling:
|
||||
dispatcher.run_polling(bot)
|
||||
patched_start_polling.assert_awaited_once()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue