Fastapi’s `TestClient`’ fails with SSE response
I’m currently doing unit-tests with a fastapi
service using pytest
. I found that fastapi.testclient.TestClient
can only handle one post
request and subsequent call to TestClient.post
would fail. Here is an minimum reproducible example:
Fastapi’s `TestClient` can only handle one request for each run
I’m currently doing unit-tests with a fastapi
service using pytest
. I found that fastapi.testclient.TestClient
can only handle one post
request and subsequent call to TestClient.post
would fail. Here is an minimum reproducible example:
Fastapi’s `TestClient` and only handle one request for each run
I’m currently doing unit-tests with a fastapi
service using pytest
. I found that fastapi.testclient.TestClient
can only handle one post
request and subsequent call to TestClient.post
would fail. Here is an minimum reproducible example: