mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
parent
d8a977f357
commit
dbaf6fabcb
10 changed files with 54 additions and 75 deletions
|
|
@ -178,9 +178,7 @@ class TestFSMI18nMiddleware:
|
|||
async def test_middleware(self, i18n: I18n, bot: MockedBot, extra):
|
||||
middleware = FSMI18nMiddleware(i18n=i18n)
|
||||
storage = MemoryStorage()
|
||||
state = FSMContext(
|
||||
bot=bot, storage=storage, key=StorageKey(user_id=42, chat_id=42, bot_id=bot.id)
|
||||
)
|
||||
state = FSMContext(storage=storage, key=StorageKey(user_id=42, chat_id=42, bot_id=bot.id))
|
||||
data = {
|
||||
"event_from_user": User(id=42, is_bot=False, language_code="it", first_name="Test"),
|
||||
"state": state,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue