Fix another incorrect query in the testing doc

I missed the other place where the `query` example is used incorrectly.
This commit is contained in:
Nick Kocharhook 2022-06-01 09:10:24 -07:00 committed by GitHub
parent 5b5a12d0d3
commit 20f2d6bcc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,9 +108,9 @@ provides ``response.text``, or use ``response.get_data(as_text=True)``.
assert b"<h2>Hello, World!</h2>" in response.data assert b"<h2>Hello, World!</h2>" in response.data
Pass a dict ``query={"key": "value", ...}`` to set arguments in the Pass a dict ``query_string={"key": "value", ...}`` to set arguments in
query string (after the ``?`` in the URL). Pass a dict ``headers={}`` the query string (after the ``?`` in the URL). Pass a dict
to set request headers. ``headers={}`` to set request headers.
To send a request body in a POST or PUT request, pass a value to To send a request body in a POST or PUT request, pass a value to
``data``. If raw bytes are passed, that exact body is used. Usually, ``data``. If raw bytes are passed, that exact body is used. Usually,