Try to fix tests for python <= 3.9

This commit is contained in:
Alex Root Junior 2022-02-16 20:19:39 +02:00
parent 9873ad84f5
commit 41fa6ac652
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

@ -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)