The test components we offer in the dispatch.test package were coupled to the httpx package, since this is what FastAPI uses internally (e.g. for its test client).
To be able to test other web frameworks (e.g. flask from #169), we need to decouple our test components from FastAPI and httpx.
This PR does just that, by using a protocol (i.e. structural typing) for the HTTP client and response.
I've downgraded httpx to a dev dependency as a result.
The test components we offer in the
dispatch.test
package were coupled to thehttpx
package, since this is what FastAPI uses internally (e.g. for its test client).To be able to test other web frameworks (e.g.
flask
from #169), we need to decouple our test components from FastAPI and httpx.This PR does just that, by using a protocol (i.e. structural typing) for the HTTP client and response.
I've downgraded
httpx
to a dev dependency as a result.