mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Try to fix tests for python <= 3.9
This commit is contained in:
parent
9873ad84f5
commit
41fa6ac652
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class TestChatActionSender:
|
|||
],
|
||||
)
|
||||
@pytest.mark.parametrize("pass_bot", [True, False])
|
||||
def test_factory(self, action: str, bot: MockedBot, pass_bot: bool):
|
||||
async def test_factory(self, action: str, bot: MockedBot, pass_bot: bool):
|
||||
sender_factory = getattr(ChatActionSender, action)
|
||||
sender = sender_factory(chat_id=42, bot=bot if pass_bot else None)
|
||||
assert isinstance(sender, ChatActionSender)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue