Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/integrations/starlette/test_starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@ async def _render_template(request):
"request": request,
"msg": "Hello Template World!",
}
return templates.TemplateResponse("trace_meta.html", template_context)
if STARLETTE_VERSION >= (1,):
return templates.TemplateResponse(
request, "trace_meta.html", template_context
)
else:
return templates.TemplateResponse("trace_meta.html", template_context)

all_methods = [
"CONNECT",
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ envlist =
{py3.7,py3.10,py3.11}-starlette-v0.28.0
{py3.8,py3.12,py3.13}-starlette-v0.40.0
{py3.10,py3.13,py3.14,py3.14t}-starlette-v0.52.1
{py3.10,py3.13,py3.14,py3.14t}-starlette-v1.0.0rc1

{py3.6,py3.9,py3.10}-fastapi-v0.79.1
{py3.7,py3.10,py3.11}-fastapi-v0.97.0
Expand Down Expand Up @@ -676,6 +677,7 @@ deps =
starlette-v0.28.0: starlette==0.28.0
starlette-v0.40.0: starlette==0.40.0
starlette-v0.52.1: starlette==0.52.1
starlette-v1.0.0rc1: starlette==1.0.0rc1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Starlette rc1 conflicts with pinned anyio

Medium Severity

The new starlette-v1.0.0rc1 env inherits the global starlette: anyio<4.0.0 pin, which is likely incompatible with Starlette 1.0’s dependency requirements. This can make the starlette-v1.0.0rc1 tox environment fail during dependency resolution, breaking the updated CI matrix.

Additional Locations (1)

Fix in Cursor Fix in Web

starlette: pytest-asyncio
starlette: python-multipart
starlette: requests
Expand Down
Loading