mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Small changes in tests
This commit is contained in:
parent
7f0a9d8097
commit
5296724a0f
2 changed files with 9 additions and 3 deletions
|
|
@ -63,6 +63,8 @@ async def memory_storage():
|
|||
def bot():
|
||||
bot = MockedBot()
|
||||
token = Bot.set_current(bot)
|
||||
yield bot
|
||||
Bot.reset_current(token)
|
||||
bot.me.invalidate(bot)
|
||||
try:
|
||||
yield bot
|
||||
finally:
|
||||
Bot.reset_current(token)
|
||||
bot.me.invalidate(bot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue