Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow global follow_redirects option. #2207

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

alex-oleshkevich
Copy link
Member

When you have many good-old HTML forms and use post-redirect-get pattern, it quickly becomes noisy to add follow_redirects=False to each HTTP call if you want to check the redirect location and headers (like 200/400 for form validation errors and 30x for successful submissions).

Setting follow_redirects at TestClient level makes things simpler and less repeatable.

Copy link
Sponsor Member

@Kludex Kludex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Kludex Kludex merged commit d6007d7 into encode:master Jul 6, 2023
5 checks passed
Kludex pushed a commit that referenced this pull request Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants