Skip to content

Commit 2aebf68

Browse files
committed
tests: using async fixture
1 parent 1d7c790 commit 2aebf68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/api/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pytest
2-
import asyncio
2+
import pytest_asyncio
33
from api import app
44
from memobase_server.env import CONFIG
55
from fastapi.testclient import TestClient
@@ -23,7 +23,7 @@
2323
# loop.close()
2424

2525

26-
@pytest.fixture(scope="function")
26+
@pytest_asyncio.fixture(scope="function")
2727
async def db_env():
2828
client = TestClient(app)
2929
response = client.get(f"{PREFIX}/healthcheck")

0 commit comments

Comments
 (0)