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:
Gabriel Luiz Freitas Almeida 2024-10-23 10:02:06 -03:00 • committed by GitHub
commit e93397d118
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 15 deletions

View file

@ -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()