Skip to content
Myr

Explicitly check is_redirect in simple test case (#208)

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

authored by Tammo Behrends · committed by Seth Michael Larson · parent e51b212 · Browse files · 1 file+2 added−0 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+2 added−0 removed

  • tests:+2 added−0 removed

1 file+2 added−0 removed

modified:tests/client/test_redirects.py+2 added
133 unmodified lines
134 "https://example.org/redirect_303", allow_redirects=False135 )136 assert response.status_code == codes.SEE_OTHER137 assert response.url == URL("https://example.org/redirect_303")138 assert response.is_redirect is True139 assert len(response.history) == 0140141 response = await response.next()142 assert response.status_code == codes.OK143 assert response.url == URL("https://example.org/")144 assert response.is_redirect is False145 assert len(response.history) == 1146147148@pytest.mark.asyncio
125 unmodified lines