Skip to content

Fix test_extra_routes on latest Starlette - #4637

Closed
paulo-raca wants to merge 1 commit into
fastapi:masterfrom
paulo-raca:fix_test_extra_routes
Closed

paulo-raca wants to merge 1 commit into
fastapi:masterfrom
paulo-raca:fix_test_extra_routes

Conversation

@paulo-raca

Copy link
Copy Markdown
Contributor

This modified some endpoints to use raw Response instead of JSONResponse on methods that do not have response bodies.

This is necessary on latest starlette versions, as JSONResponse contents is now a required argument

No longer uses JSONResponse on methods that do not have response bodies
@paulo-raca paulo-raca changed the title Fix test_extra_routes Fix test_extra_routes on latest Starlette Mar 2, 2022
@paulo-raca

Copy link
Copy Markdown
Contributor Author

Nevermind, this is redundant with #4488 🤦‍♂️

@paulo-raca paulo-raca closed this Mar 2, 2022
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