Skip to content

Commit 850d0b8

Browse files
committed
test: use asyncio.Event
1 parent 7f25b60 commit 850d0b8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
from asyncio import Event
12
from unittest.mock import MagicMock
23
from uuid import uuid4
34

45
import pytest
5-
from anyio._backends._asyncio import Event
66

77

88
@pytest.fixture(scope="session")

tests/testcase.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from unittest.mock import MagicMock
55

66
import pytest
7-
from anyio import Event
87
from faststream.broker.core.asyncronous import BrokerAsyncUsecase
98
from faststream.utils.functions import timeout_scope
109
from taskiq import AsyncBroker, TaskiqScheduler
@@ -30,7 +29,7 @@ async def test_task(
3029
subject: str,
3130
broker: BrokerAsyncUsecase[Any, Any],
3231
mock: MagicMock,
33-
event: Event,
32+
event: asyncio.Event,
3433
) -> None:
3534
"""Base testcase."""
3635

0 commit comments

Comments
 (0)