From bb9937593de3917d17c2da1fc55489f10bb3c8b2 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Fri, 20 Oct 2023 17:17:24 +0200 Subject: [PATCH] docs/testing.rst: fix follow_redirects sample code --- docs/testing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/testing.rst b/docs/testing.rst index 8545bd39..b1d52f9a 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -192,7 +192,7 @@ which records the request that produced that response. .. code-block:: python def test_logout_redirect(client): - response = client.get("/logout") + response = client.get("/logout", follow_redirects=True) # Check that there was one redirect response. assert len(response.history) == 1 # Check that the second request was to the index page.