Skip to content

Fix Starlette 1.0.0 TemplateResponse API and Windows test issues#18

Open
mkitti wants to merge 1 commit intoJaneliaSciComp:mainfrom
mkitti:fix-starlette-template-response-and-test-issues
Open

Fix Starlette 1.0.0 TemplateResponse API and Windows test issues#18
mkitti wants to merge 1 commit intoJaneliaSciComp:mainfrom
mkitti:fix-starlette-template-response-and-test-issues

Conversation

@mkitti
Copy link
Copy Markdown

@mkitti mkitti commented Apr 14, 2026

  • Update TemplateResponse calls to new Starlette 1.0.0 signature: (request, name, context=...) instead of (name, {"request": ...})
  • Guard MB/s print against ZeroDivisionError when elapsed time is 0
  • Wrap file handles in with statements in test_range_request_buffering so they are closed before unlink() (required on Windows)

- Update TemplateResponse calls to new Starlette 1.0.0 signature:
  (request, name, context=...) instead of (name, {"request": ...})
- Guard MB/s print against ZeroDivisionError when elapsed time is 0
- Wrap file handles in `with` statements in test_range_request_buffering
  so they are closed before unlink() (required on Windows)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant