From 20f2d6bcc1dffe935b09f93a62b648884ee872b1 Mon Sep 17 00:00:00 2001 From: Nick Kocharhook Date: Wed, 1 Jun 2022 09:10:24 -0700 Subject: [PATCH] Fix another incorrect `query` in the testing doc I missed the other place where the `query` example is used incorrectly. --- docs/testing.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/testing.rst b/docs/testing.rst index 16124522..8545bd39 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -108,9 +108,9 @@ provides ``response.text``, or use ``response.get_data(as_text=True)``. assert b"

Hello, World!

" in response.data -Pass a dict ``query={"key": "value", ...}`` to set arguments in the -query string (after the ``?`` in the URL). Pass a dict ``headers={}`` -to set request headers. +Pass a dict ``query_string={"key": "value", ...}`` to set arguments in +the query string (after the ``?`` in the URL). Pass a dict +``headers={}`` to set request headers. 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,