Skip to content

Remove deprecated app argument passed to httpx.Client on the TestClient#2526

Merged
Kludex merged 1 commit intoKludex:masterfrom
osoken:master
Feb 26, 2024
Merged

Remove deprecated app argument passed to httpx.Client on the TestClient#2526
Kludex merged 1 commit intoKludex:masterfrom
osoken:master

Conversation

@osoken
Copy link
Contributor

@osoken osoken commented Feb 23, 2024

Summary

Fixes: #2524
This fixes the following deprecation warning when using TestClient with httpx 0.27:

E           DeprecationWarning: The 'app' shortcut is now deprecated. Use the explicit style 'transport=WSGITransport(app=...)' instead.

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.

@osoken osoken changed the title fix(testclient): Remove deprecated argument in TestClient constructor Remove deprecated argument in TestClient constructor Feb 25, 2024
@Kludex
Copy link
Owner

Kludex commented Feb 26, 2024

Thanks! 🙏

@Kludex Kludex changed the title Remove deprecated argument in TestClient constructor Remove deprecated app argument passed to httpx.Client on the TestClient Feb 26, 2024
@Kludex Kludex merged commit a4cd0b5 into Kludex:master Feb 26, 2024
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.

TestClient DeprecationWarning with httpx 0.27.0

2 participants