-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestClient should expose app attribute #2891
Comments
I not sure. We can assign |
I will fix it on weekend |
Cool! |
Fixed by #2901 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Long story short
I wrote my first test today, use
pytest-aiohttp
, fixture:aiohttp_client
.I don't want to follow doc by use hardcode URL, I think it is not a good practical pattern. I want to use
app.route[].url_for()
.And I found it need long access chain. like
cli.server.app.route[].url_for().with_query()
.Maybe should expose
app
attribute/property inTestClient
instance?Expected behaviour
can access
app
in client byclient.app
.Actual behaviour
must access
client.server.app
The text was updated successfully, but these errors were encountered: