Fix incorrect reference to query in testing doc

The [EnvironBuilder doc](https://werkzeug.palletsprojects.com/en/2.1.x/test/#werkzeug.test.EnvironBuilder) shows that the correct name for the keyword argument is `query_string`, not `query`. Using `query` results in an error.
This commit is contained in:
Nick Kocharhook 2022-06-01 08:35:28 -07:00 committed by GitHub
parent c6e3fc8072
commit 5b5a12d0d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ The ``client`` has methods that match the common HTTP request methods,
such as ``client.get()`` and ``client.post()``. They take many arguments such as ``client.get()`` and ``client.post()``. They take many arguments
for building the request; you can find the full documentation in for building the request; you can find the full documentation in
:class:`~werkzeug.test.EnvironBuilder`. Typically you'll use ``path``, :class:`~werkzeug.test.EnvironBuilder`. Typically you'll use ``path``,
``query``, ``headers``, and ``data`` or ``json``. ``query_string``, ``headers``, and ``data`` or ``json``.
To make a request, call the method the request should use with the path To make a request, call the method the request should use with the path
to the route to test. A :class:`~werkzeug.test.TestResponse` is returned to the route to test. A :class:`~werkzeug.test.TestResponse` is returned