Skip to content
Myr

docs/testing.rst: fix follow_redirects sample code

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Arnout Engelen · committed by Arnout Engelen · parent 541bc8d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/testing.rst+1 added-1 removed
190 unmodified lines
191192.. code-block:: python193194 def test_logout_redirect(client):195 response = client.get("/logout")195 response = client.get("/logout", follow_redirects=True)196 # Check that there was one redirect response.197 assert len(response.history) == 1198 # Check that the second request was to the index page.199 assert response.request.path == "/index"
120 unmodified lines