Rename run to run_polling

This commit is contained in:
jrootjunior 2019-12-12 11:58:21 +02:00
parent 02cefa1cf3
commit 9dc1e9ff1a
2 changed files with 6 additions and 4 deletions

View file

@ -192,5 +192,5 @@ class TestDispatcher:
def test_run(self, bot: MockedBot):
dispatcher = Dispatcher()
with patch("aiogram.dispatcher.dispatcher.Dispatcher._run_polling") as patched_run_polling:
dispatcher.run(bot)
dispatcher.run_polling(bot)
patched_run_polling.assert_awaited_once()