Skip to content
Discussion options

You must be logged in to vote

The first thing would be, why do you want to access the app through the request?

Maybe if we understand the use case better we can find the right solution for it.

I think I can imagine a use case where it would be better to access the app through the request rather than directly as @dmontagu says.

About accessing docs_url and openapi_url, if you need to use that in other parts of your code, maybe it would be a better idea to put them in a Pydantic's BaseSettings that you can use everywhere.

About dependency_overrides, why would you want to access it in a path operation?

About types for the TestClient, I think it's better to wait until the TestClient is based on HTTPX, to not lose that eff…

Replies: 17 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Kludex
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
Converted from issue

This discussion was converted from issue #632 on February 28, 2023 11:30.