-
-
Notifications
You must be signed in to change notification settings - Fork 16.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
docs show test_request_context data setting request args. #4964
Comments
Thanks for the fix, can you also add it as a parameter to the |
From the docs you just linked:
|
I'm aware but it seems very unintuitive based on the other arguments that are listed there. It's very easy to miss the part where it says that most arguments are listed in the linked doc. And personally, whenever docs link to other third party docs for additional arguments I always assume it's for more advanced arguments that I probably don't need to touch unless I'm really doing something funky. I know we want to avoid listing arguments here that should be defined in (and only in) the Werkzeug docs. But perhaps a "query_string — see Werkzeug docs" would be appropriate? Or maybe saying "see the linked Werkzeug docs for most of the available arguments such as ..., ..., Or ..."? I totally get it if you don't think that's appropriate though. |
Don't do this, problem solved ;-) There are way, way more arguments than this one, it's not special. |
Fair enough. And the confusion I had really stemmed from the bad example that you fixed. Cheers! |
The
data
arg inapp.test_request_context()
is shown in the docs to set the request args, but as far as I can tell it isn't doing so.I ran a minimal version of the example in the docs
The docs use
request.args.get('format')
which certainly implies that the data argument set there should set a request arg. But the code above just prints None.I assume that
data
in the example should be changed toquery_string
and that thequery_string
arg should be added to the docs hereEnvironment:
The text was updated successfully, but these errors were encountered: