chore: update dependencies and enable HTTP/2 support for AsyncClient in tests (#4173)
* Update dependencies in pyproject.toml: fastapi, httpx, python-multipart * Enable HTTP/2 support for AsyncClient in test configurations
This commit is contained in:
parent
9b1c382641
commit
e93397d118
3 changed files with 15 additions and 15 deletions
|
|
@ -118,7 +118,7 @@ async def async_client() -> AsyncGenerator:
|
|||
from langflow.main import create_app
|
||||
|
||||
app = create_app()
|
||||
async with AsyncClient(app=app, base_url="http://testserver") as client:
|
||||
async with AsyncClient(app=app, base_url="http://testserver", http2=True) as client:
|
||||
yield client
|
||||
|
||||
|
||||
|
|
@ -306,7 +306,7 @@ async def client_fixture(
|
|||
# app.dependency_overrides[get_session] = get_session_override
|
||||
async with (
|
||||
LifespanManager(app, startup_timeout=None, shutdown_timeout=None) as manager,
|
||||
AsyncClient(transport=ASGITransport(app=manager.app), base_url="http://testserver/") as client,
|
||||
AsyncClient(transport=ASGITransport(app=manager.app), base_url="http://testserver/", http2=True) as client,
|
||||
):
|
||||
yield client
|
||||
# app.dependency_overrides.clear()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue