Skip to content

Remove deprecated allow_redirects argument from TestClient#2808

Merged
Kludex merged 2 commits intoKludex:masterfrom
lealre:remove-allow-redirects-in-testclient
Dec 25, 2024
Merged

Remove deprecated allow_redirects argument from TestClient#2808
Kludex merged 2 commits intoKludex:masterfrom
lealre:remove-allow-redirects-in-testclient

Conversation

@lealre
Copy link
Copy Markdown
Contributor

@lealre lealre commented Dec 22, 2024

Summary

As discussed in #2805 and related to #2783 .

Remove the deprecated allow_redirects argument from TestClient, and update the tests and pyproject.toml.

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.

__test__ = False
task: Future[None]
portal: anyio.abc.BlockingPortal | None = None
redirect: bool | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why this? There's a parameter in the init

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My bad, I forgot it there

@Kludex
Copy link
Copy Markdown
Owner

Kludex commented Dec 25, 2024

Thanks!

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.

2 participants