Async TestClient
?
#2935
Answered
by
Kludex
davidbrochart
asked this question in
Q&A
Async `TestClient`?
#2935
-
I see that TestClient is not async, and that it uses a thread. I'd like to use it in a WASM environment, where threads are not available. Is there an async version of it, or any plan to add one? |
Beta Was this translation helpful? Give feedback.
Answered by
Kludex
May 14, 2025
Replies: 1 comment 1 reply
-
I honestly don't like to recommend I'm open to accept a PR that implements the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I honestly don't like to recommend
httpx.AsyncClient
,httpx.ASGITransport
andasgi_lifespan.LifespanManager
for testing...I'm open to accept a PR that implements the
AsyncTestClient
- I'll not implement it myself.