mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
chore: add mark.asyncio for tests which were ignored previously
This commit is contained in:
parent
d5f97e9ab4
commit
355aa3a90a
1 changed files with 3 additions and 0 deletions
|
|
@ -75,6 +75,8 @@ def test_extract_chat_ids(chat_id: ChatIDArgumentType, expected: Set[int]):
|
|||
|
||||
|
||||
class TestForwardedMessageFilter:
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_filter_forwarded_messages(self):
|
||||
filter = ForwardedMessageFilter(is_forwarded=True)
|
||||
|
||||
|
|
@ -85,6 +87,7 @@ class TestForwardedMessageFilter:
|
|||
assert await filter.check(forwarded_message)
|
||||
assert not await filter.check(not_forwarded_message)
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_filter_not_forwarded_messages(self):
|
||||
filter = ForwardedMessageFilter(is_forwarded=False)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue