Open devkral opened 1 month ago
TestClientTransport is supposed to handle ASGI but inherits from httpx.BaseTransport which is for WSGI and handles with deprecation warnings ASGI.
It should inherit of httpx.AsyncBaseTransport and implement it.
Yes that is correct. For the async client we adopt something else. In fact you are correct. We should implement the AsyncTestClient directly.
We should also deprecate python 3.8 now
TestClientTransport is supposed to handle ASGI but inherits from httpx.BaseTransport which is for WSGI and handles with deprecation warnings ASGI.
It should inherit of httpx.AsyncBaseTransport and implement it.