Skip to content

Commit 2b006e1

Browse files
committed
Fixed issue with strict pytest-asyncio breaking
pytest-dev/pytest-asyncio#386
1 parent 284d7a0 commit 2b006e1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/grid/backend/grid/tests/conftest.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# future
2+
from __future__ import annotations
3+
14
# stdlib
25
import logging
36
from typing import Generator
@@ -10,6 +13,7 @@
1013
from httpx import AsyncClient
1114
from loguru import logger
1215
import pytest
16+
import pytest_asyncio
1317

1418
# grid absolute
1519
from grid.core.config import settings
@@ -30,7 +34,7 @@ def faker() -> Faker:
3034
return Faker()
3135

3236

33-
@pytest.fixture
37+
@pytest_asyncio.fixture
3438
async def app() -> FastAPI:
3539
session = get_db_session()
3640
init_db(db=session)
@@ -42,7 +46,7 @@ async def app() -> FastAPI:
4246
yield app
4347

4448

45-
@pytest.fixture
49+
@pytest_asyncio.fixture
4650
async def client(app: FastAPI) -> AsyncClient:
4751
async with AsyncClient(
4852
app=app,

0 commit comments

Comments
 (0)