Skip to content

Commit 5e50e0f

Browse files
committed
test: use async fixture
1 parent 850d0b8 commit 5e50e0f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/conftest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from asyncio import Event
1+
import asyncio
22
from unittest.mock import MagicMock
33
from uuid import uuid4
44

@@ -27,5 +27,6 @@ def mock() -> MagicMock:
2727

2828

2929
@pytest.fixture()
30-
def event() -> Event:
31-
return Event()
30+
@pytest.mark.anyio
31+
async def event() -> asyncio.Event:
32+
return asyncio.Event()

0 commit comments

Comments
 (0)