TestClient doesn't send cookies automatically #2923
Unanswered
SilasK
asked this question in
Potential Issue
Replies: 1 comment 1 reply
-
Tr 8000 y latest httpx. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I building test scripts using cookies.
httpx says that seting cookies in calls will be depricated. But without it doesn't work
This will lead to errors in the future #2770
for now I use this.
latest fastapi and starlette
httpx 0.25.2
I get the warning
python3.12/site-packages/httpx/_client.py:799: DeprecationWarning: Setting per-request cookies=<...> is being deprecated, because the expected behaviour on cookie persistence is ambiguous. Set cookies directly on the client instance instead.
warnings.warn(message, DeprecationWarning)
Beta Was this translation helpful? Give feedback.
All reactions