mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-14 18:58:10 +08:00
Fix depreciation warnings
This commit is contained in:
@ -20,6 +20,7 @@ ignore_missing_imports = true
|
|||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
asyncio_mode = "auto"
|
asyncio_mode = "auto"
|
||||||
addopts = "--ignore=test_build.py"
|
addopts = "--ignore=test_build.py"
|
||||||
|
asyncio_default_fixture_loop_scope = "session"
|
||||||
markers = [
|
markers = [
|
||||||
"authentication",
|
"authentication",
|
||||||
"db",
|
"db",
|
||||||
|
@ -546,7 +546,7 @@ def get_test_client():
|
|||||||
async def _get_test_client(app: FastAPI) -> AsyncGenerator[httpx.AsyncClient, None]:
|
async def _get_test_client(app: FastAPI) -> AsyncGenerator[httpx.AsyncClient, None]:
|
||||||
async with LifespanManager(app):
|
async with LifespanManager(app):
|
||||||
async with httpx.AsyncClient(
|
async with httpx.AsyncClient(
|
||||||
app=app, base_url="http://app.io"
|
transport=httpx.ASGITransport(app), base_url="http://app.io"
|
||||||
) as test_client:
|
) as test_client:
|
||||||
yield test_client
|
yield test_client
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user