We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 284d7a0 commit 2b006e1Copy full SHA for 2b006e1
packages/grid/backend/grid/tests/conftest.py
@@ -1,3 +1,6 @@
1
+# future
2
+from __future__ import annotations
3
+
4
# stdlib
5
import logging
6
from typing import Generator
@@ -10,6 +13,7 @@
10
13
from httpx import AsyncClient
11
14
from loguru import logger
12
15
import pytest
16
+import pytest_asyncio
17
18
# grid absolute
19
from grid.core.config import settings
@@ -30,7 +34,7 @@ def faker() -> Faker:
30
34
return Faker()
31
35
32
36
33
-@pytest.fixture
37
+@pytest_asyncio.fixture
38
async def app() -> FastAPI:
39
session = get_db_session()
40
init_db(db=session)
@@ -42,7 +46,7 @@ async def app() -> FastAPI:
42
46
yield app
43
47
44
48
45
49
50
async def client(app: FastAPI) -> AsyncClient:
51
async with AsyncClient(
52
app=app,
0 commit comments