Skip to content

Commit 10729c3

Browse files
committed
fix: test configuration error
1 parent 0499db0 commit 10729c3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from httpx import ASGITransport, AsyncClient
33
from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_async_engine
44

5+
from telemetry_api.worker.tasks import device_analytics
56
from telemetry_api.database.database import get_db
67
from telemetry_api.database.models import Base
78
from telemetry_api.main import app
@@ -26,6 +27,7 @@ async def test_get_db():
2627

2728

2829
app.dependency_overrides[get_db] = test_get_db
30+
device_analytics.AsyncSessionLocal = TestingSessionLocal
2931

3032

3133
@pytest.fixture(autouse=True)

0 commit comments

Comments
 (0)