Fix depreciation warnings

This commit is contained in:
François Voron
2024-11-03 12:56:54 +00:00
committed by GitHub
parent 1e163804e2
commit ad99e4d66a
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "--ignore=test_build.py"
asyncio_default_fixture_loop_scope = "session"
markers = [
"authentication",
"db",

View File

@ -546,7 +546,7 @@ def get_test_client():
async def _get_test_client(app: FastAPI) -> AsyncGenerator[httpx.AsyncClient, None]:
async with LifespanManager(app):
async with httpx.AsyncClient(
app=app, base_url="http://app.io"
transport=httpx.ASGITransport(app), base_url="http://app.io"
) as test_client:
yield test_client