mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
chore: rm unnecessary extra
This commit is contained in:
parent
75f0aa745e
commit
bb0d81991a
1 changed files with 2 additions and 2 deletions
|
|
@ -175,7 +175,7 @@ class TestConstI18nMiddleware:
|
|||
|
||||
|
||||
class TestFSMI18nMiddleware:
|
||||
async def test_middleware(self, i18n: I18n, bot: MockedBot, extra):
|
||||
async def test_middleware(self, i18n: I18n, bot: MockedBot):
|
||||
middleware = FSMI18nMiddleware(i18n=i18n)
|
||||
storage = MemoryStorage()
|
||||
state = FSMContext(storage=storage, key=StorageKey(user_id=42, chat_id=42, bot_id=bot.id))
|
||||
|
|
@ -192,7 +192,7 @@ class TestFSMI18nMiddleware:
|
|||
result = await middleware(next_call, Update(update_id=42), data)
|
||||
assert result == "тест"
|
||||
|
||||
async def test_without_state(self, i18n: I18n, bot: MockedBot, extra):
|
||||
async def test_without_state(self, i18n: I18n, bot: MockedBot):
|
||||
middleware = FSMI18nMiddleware(i18n=i18n)
|
||||
data = {
|
||||
"event_from_user": User(id=42, is_bot=False, language_code="it", first_name="Test"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue